[wordpress插件] Add Paragraphs Option to Text Widget将段落选项添加到文本小部件

wordpress 插件 文章 2020-01-30 21:20 544 0 全屏看文

AI助手支持GPT4.0

评分

100

100

描述

WordPress 4.8 introduced the visual editor to the Text Widget, but in doing so remove the checkbox to add paragraphs.

WordPress 4.8将视觉编辑器引入了“文本”小部件,但在此过程中,取消了复选框以添加段落。

Whilst this is backwardly compatible, as soon as you edit the text widget the paragraph tag is introduced.

尽管这是向后兼容的,但是一旦您编辑文本窗口小部件,便会引入段落标记。

This can have disastrous impact to your design and break

这可能会对您的设计造成灾难性的影响并破坏

scripts that have blank lines.

包含空白行的脚本。

Also, the visual editor if used will remove code it thinks is invalid, including empty tags, which is also a bit problem.

此外,可视化编辑器(如果使用)将删除它认为无效的代码,包括空标签,这也是一个问题。

By default this plugin also turns off the visual editor.

默认情况下,此插件还会关闭可视化编辑器。

There is a setting added to settings>general that allows you to turn on the visual editor.

有一个设置添加到settings> general中,可以打开可视化编辑器。

You can also turn it back on by adding define (‘VISUAL_TEXT_WIDGET’,true);

您还可以通过添加define('VISUAL_TEXT_WIDGET',true)重新打开它;

to your wp-config.php.

到您的wp-config.php。

Defining

定义

VISUAL_TEXT_WIDGET to true or false remove the setting option from settings>general so you can hide the option.

VISUAL_TEXT_WIDGET为true或false可以从settings> general中删除该设置选项,以便隐藏该选项。

If installed pre 4.8 the plugin will do nothing, not even a warning, so you can install this before a 4.8 upgrade and things should be better.

如果在4.8之前安装,该插件将无所作为,甚至不会发出警告,因此您可以在4.8升级之前安装此插件,并且情况会更好。

Of course upgrading is your responsibility and always take a backup.

当然,升级是您的责任,并且始终要备份。

Version: 1.6 only : WordPress 4.8.1 ( currently in beta ) has introduced a legacy mode that makes this plugin redundant, so if the WordPress version is greater than 4.8 the plugin does nothing and is silent.

版本:仅1.6:WordPress 4.8.1(当前处于beta版)引入了旧版模式,使该插件具有冗余性,因此,如果WordPress版本大于4.8,则该插件将不执行任何操作且保持沉默。

You may safely remove it if you are on 4.8.1 or above.

如果您使用的是4.8.1或更高版本,则可以安全地删除它。

Thank the developer

感谢开发者

Did this plugin get you out of trouble?

此插件让您摆脱困境了吗?

Please consider making a small donation to thank the developer for

请考虑捐款少量,以感谢开发人员

the the time he has saved you.

他救了你的时间。

Hall of fame

名人堂

* 28 June 2017 – STW – $25

* 2017年6月28日– STW – $ 25

* 4 July 2017 – AS – $1

* 2017年7月4日– AS – $ 1

* 17 July 2017 – M11 – $20

* 2017年7月17日– M11 – $ 20

Total thanks to date $46

截止到目前,总计感谢$ 46

安装步骤

Through Dashboard

通过仪表板

    1. Log in to your WordPress admin panel and go to Plugins -> Add New
    2. 登录到WordPress管理面板,然后转到“插件”->“添加新内容”

    3. Type widget for Add Paragraphs Option to Text Widget in the search box and click on search button.
    4. 在搜索框中输入用于将段落选项添加到“文本”小部件的类型小部件,然后单击搜索按钮。

    5. Find Widget for Add Paragraphs Option to Text Widget plugin.
    6. 找到用于将段落选项添加到文本小部件插件的小部件。

    7. Then click on Install Now after that activate the plugin.
    8. 然后在激活插件后单击“立即安装”。

    9. That is it, next time you open a Text Widget in admin you should see no visual editor and see the add paragraphs check box
    10. 就是这样,下次您在admin中打开Text Widget时,应该看不到可视化编辑器,并看到“添加段落”复选框

    11. If the Visual Editor is required either go to Settings>General and tick the setting or add define (‘VISUAL_TEXT_WIDGET’,true);

    12. 如果需要使用Visual Editor,请转至“设置”>“常规”并勾选设置或添加定义(“ VISUAL_TEXT_WIDGET”,true);

      to your wp-config.php

    13. 到您的wp-config.php

    Installing Via FTP

    通过FTP安装

      1. Download the plugin to your hardisk.
      2. 将插件下载到您的Hardisk。

      3. Unzip.
      4. 解压缩。

      5. Upload the add-paragraphs folder into your plugins directory.
      6. add-paragraphs 文件夹上传到您的插件目录中。

      7. Log in to your WordPress admin panel and click the Plugins menu.
      8. 登录到WordPress管理面板,然后单击“插件”菜单。

      9. Then activate the plugin.
      10. 然后激活插件。

      11. That is it, next time you open a Text Widget in admin you should see no visual editor and see the add paragraphs check box
      12. 就是这样,下次您在admin中打开Text Widget时,应该看不到可视化编辑器,并看到“添加段落”复选框

      13. If the Visual Editor is required either go to Settings>General and tick the setting or add define (‘VISUAL_TEXT_WIDGET’,true);

      14. 如果需要使用Visual Editor,请转至“设置”>“常规”并勾选设置或添加定义(“ VISUAL_TEXT_WIDGET”,true);

        to your wp-config.php

      15. 到您的wp-config.php

下载地址

https://downloads.wordpress.org/plugin/add-paragraphs-option-to-text-widget.1.6.zip

https://downloads.wordpress.org/plugin/add-paragraphs-option-to-text-widget.1.6.zip

-EOF-

AI助手支持GPT4.0