WordPress has developed very much like the platform over time. New features, new plugins and new themes have become more useful for those who use this CMS for websites, blogs, and online magazines.
Basic functions (core) added recent versions of WordPress also include level changes widgets (Parts). Among these is the addition the widget HTML editorCPC "Copy"The WordPress.
A good idea that allows one Easier personalization from the "Visual" editor, without having to minimal HTML knowledge to add some links or to change the format of a text. There is, however, a problem for those who prefer to edit their own HTML code in "Copy"Widget. After publishing, there is a possibility of "ul"And other HTML elements started from the"Visual"And which does not look the way it should. So even if an HTML code is added to the "Text" editor of the widget, it will be automatically converted to "Visual" and unwanted code snippets will be added.
The easiest solution is to disable the "Visual" mode in WordPress widgets. We can do this by adding a function function to the functions file.php of the WordPress theme.
How to Disable the "Visual" Publisher in WordPress Widgets
Fortunately, for those who use WordPress, they can use additional features, enable and disable core functions anytime. Everything is to have access to the site's files through fTP or SFTP and carefully edit your files. In our case, to disable the "Visual" editor of the "Text" widget in WordPress, we go into the theme folder and add the following code to the functions file.php:
add_filter( 'widget_display_callback', 'clean_widget_display_callback', 10, 3 ); function clean_widget_display_callback( $instance, $widget, $args ) { $instance['filter'] = false; return $instance; }
Save the change, then the Visual Editor will be disabled from WordPress widgets. It remains active for WP Posts, WP Pages and other customized modules.
Next: Windows 10 - Microsoft launches a new Bluetooth pairing system for Windows 10 »»Old: «« How to move a blog or a WordPress website from HTTP to HTTPS (NGINX)
IT Tips - Windows, Mac OS X, Linux & Mobile - Disable HTML editor in Visual TEXT Widget in WordPress