Do you want to disable the new widget block editor page of Gutenberg and bring back the old widgets page? Using one of the codes given below you can restore the settings of the previous widget 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( 'sgt_activate_classic_widgets' ) ) :
function sgt_activate_classic_widgets() {
    remove_sgt_support( 'widgets-block-editor' );
}
endif;
add_action( 'after_setup_theme', 'sgt_activate_classic_widgets' );

Don’t forget to save the functions.php.


  1. Alternative Method:
    If you don’t need to edit the functions.php file of your theme, install and activate this plugin and the old widgets page will be back: https://wordpress.org/plugins/classic-widgets/
  2. If you use Visual Composer then disable

For the widgets I personally use this

add_filter( 'use_widgets_block_editor', '__return_false' );

Leave a Reply

Your email address will not be published. Required fields are marked *