Add Paragraphs Option to Text Widget

by Alan Fuller


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.

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
* 4 July 2017 – AS – $1
* 17 July 2017 – M11 – $20

Total thanks to date $46


Last updated:
Active installations:
WordPress Version:
4.7 or higher
Tested up to: