How to Disable Gutenberg Widget Block Editor February 20, 2022

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.

Like this article? Spread the word

Share Share Share Share

Support Me to Buy a Coffee

If you like my blog or Free WordPress Theme and Plugin then Please make me happy to buy a Coffee to bing more inspired to contribute to it.

Leave a Reply

Your email address will not be published.

Ask Question

    Support Me to Buy a Coffee

    If you like my blog or Free WordPress Theme and Plugin then Please make me happy to buy a Coffee to bing more inspired to contribute on it.