Linux 软件免费装

Add Paragraphs Option to Text Widget

开发者 fullworks
更新时间 2017年7月20日 22:37
捐献地址: 去捐款
PHP版本: 4.7 及以上
WordPress版本: 4.8
版权: GPLv3 or later
版权网址: 版权信息

标签

text widget

下载

1.2 1.3 1.4 1.5 1.1 1.6

详情介绍:

WordPress 4.8 introduced the visual editor to the Text Widget, but in doing so remove the checkbox to add paragraphs. 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. You can also turn it back on by adding define ('VISUAL_TEXT_WIDGET',true); to your wp-config.php. Defining VISUAL_TEXT_WIDGET to true or false remove the setting option from settings>general so you can hide the option. 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. 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. You may safely remove it if you are on 4.8.1 or above.

安装:

Through Dashboard
  1. Log in to your WordPress admin panel and go to Plugins -> Add New
  2. Type widget for Add Paragraphs Option to Text Widget in the search box and click on search button.
  3. Find Widget for Add Paragraphs Option to Text Widget plugin.
  4. Then click on Install Now after that activate the plugin.
  5. 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
  6. If the Visual Editor is required either go to Settings>General and tick the setting or add define ('VISUAL_TEXT_WIDGET',true); to your wp-config.php
Installing Via FTP
  1. Download the plugin to your hardisk.
  2. Unzip.
  3. Upload the add-paragraphs folder into your plugins directory.
  4. Log in to your WordPress admin panel and click the Plugins menu.
  5. Then activate the plugin.
  6. 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
  7. If the Visual Editor is required either go to Settings>General and tick the setting or add define ('VISUAL_TEXT_WIDGET',true); to your wp-config.php

常见问题:

Will it remember settings prior to 4.8?

Yes, the change by WordPress is backwardly compatible and remembers the prior setting, this plugin just re-introduces the checkbox.

Can I install it before upgrading to 4.8

Yes.

How do I get the visual editor

Either go to Settings>General and find the option or add this line to your wp-config.php define ('VISUAL_TEXT_WIDGET',true); before this line / That's all, stop editing! Happy blogging. / Adding either define ('VISUAL_TEXT_WIDGET',true); or define ('VISUAL_TEXT_WIDGET',false); will hide the Settings>General option

更新日志:

1.6 1.5 1.4 1.3 1.2 1.1 1.0