Do you know? The last version of WordPress 5.8 comes with some new amazing features and one of them is Widget Block Editor. Widget block editor has based on the Gutenberg editor that you have in post add/edit. If you visit the widget area inside the dashboard then there have also major changes. You will not see the old widget structure. if you think a new widget affecting your site design then you can easily disable it.
Do you want to disable the Gutenberg widget editor page of Gutenberg and bring back the old widgets page? Provided below you can restore the previous widget’s settings screens and disables the block editor from managing widgets. Add “Code 1” or “Code 2” into your theme’s functions.php file:
Code 1:
// 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. add_filter( 'use_widgets_block_editor', '__return_false' );
Code 2:
if ( ! function_exists( 'codepopular_activate_classic_widgets' ) ) : function codepopular_activate_classic_widgets() { remove_theme_support( 'widgets-block-editor' ); } endif; add_action( 'after_setup_theme', 'codepopular_activate_classic_widgets' );
After adding code to functions.php then save the file.
To get more help watch my created youtube video. in this video, I was trying to show how actually disable the Gutenberg widget editor.
You can install our Unlimited Theme Addons plugin to disable the Gutenberg block editor and this plugin gives more extra free theme addons for free.
If the above information was helpful for you then flow up our other blog posts from CodePopular.
Hi, My name is Shamim. I am a freelance PHP developer in Bangladesh. I have been working as a freelance developer since 2014. I am a passionate and creative web development person. As a senior level, I focus on your requirements in detail and deliver high-quality work on your budget.