Disable Gutenberg Widget Block Editor

Disable Gutenberg Widget Block Editor | Widget is one of the most important things of the WordPress Content Management System. You are working on WordPress Widget and Sometimes you may notice your widgets are opening with Gutenberg Widget Block Editor. Since you are used to using classic editor, you may not like the Gutenberg Widget Block Editor. If you want to get back to the classic editor, you need to go through a few simple steps that are mentioned below:

Disable Widget Block Editor with plugin :

To disable Gutenberg widget block editor with a plugin, all you need to do is to install and activate this plugin: Download

Disable Gutenberg Widget Block Editor with custom code :

If you don’t want to use the plugin because sometimes the plugin makes your site slower, you may want to use a few lines of custom code. All you need to do is to copy and paste the below custom code to your WordPress Child Theme’s functions.php file. Please make sure it to this step very carefully. If you make any mistake to edit the functions.php file, your website may break. So, be careful to edit this file. Codes are mentioned below:

Code : 01
// 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 : 02
if ( ! function_exists( 'themesdna_activate_classic_widgets' ) ) :
function themesdna_activate_classic_widgets() {
    remove_theme_support( 'widgets-block-editor' );
}
endif;
add_action( 'after_setup_theme', 'themesdna_activate_classic_widgets' );
NOTE: PLEASE USE ONLY Code : 01 OR Code : 02, NOT BOTH OF THEM.

N.B. This is a developer-level tutorial. If you feel, it’s difficult to do for you. You may consider hiring me through Fiverr. I’ll do it for you.

Table of Contents :

Leave a Comment

Your email address will not be published.