If you do not know, from WordPress 5.8 there are many changes related to Block Editor.
In which, changing the use of Widget with Block Editor instead of the old one.
This change may make many of you unfamiliar and difficult to manipulate.
In this article, I will guide you to remove this new function in WordPress.
Instructions to disable Block Editor Widget
Just like before, you can completely use Classic Editor to return to the old editor.
You can also use the Classic Widgets plugin to revert to the previous editor.
To make it easier for you to imagine, the new widget editor will look like this.
You can use blocks to drag and drop into widgets including:
- Latest Posts
- Page List
If you are new or the theme is not compatible, please disable it.
After installing Classic Widget it will automatically switch back to the old editor without any installation.
According to my prediction, the download and active plugin will increase rapidly in the near future.
And if you don’t like using the plugin, try the method below.
Disable widget block editor without plugin
You just need to add the following code to the functions.php file (in the theme you are using).
// Disables the block editor from managing widgets in the Gutenberg plugin. add_filter( 'gutenberg_use_widgets_block_editor', '__return_false', 100 ); // Disables the block editor from managing widgets. renamed from wp_use_widgets_block_editor add_filter( 'use_widgets_block_editor', '__return_false' );
Note: After activating your plugin, all the widget blocks you added before will disappear, even if you disable the Classic Editor plugin.
However, if you are using the old editor (with the Classic Editor plugin), the widgets will not be lost if you deactivate the Classic Editor plugin.