DEV Community

Aman Mehra
Aman Mehra

Posted on

How to Disable Widget Block Editor in WordPress?

In the latest version of WordPress 5.8 comes with some new 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.

So here, we will see how to disable the widget block editor in WordPress and get back to the classic editor.

Using the use_widgets_block_editor

Just add the following one-line code in your active theme’s functions.php file and save it.

add_filter( 'use_widgets_block_editor', '__return_false' );
Enter fullscreen mode Exit fullscreen mode

Using the rempove_theme_support

The function remove_theme_support(‘widget-block-editor’) will disable the block editor. See the code below.

function disable_wbe_theme_support() {
    remove_theme_support( 'widgets-block-editor' );
}
add_action( 'after_setup_theme', 'disable_wbe_theme_support' );
Enter fullscreen mode Exit fullscreen mode

Using the Plugins

You can also use the plugin to disable the block widget editor and get back your classic widget area.

You need to just install the plugins and activate it and follow the settings if they have one.

The are the two plugin to disable the widget block editor.

You can see full tutorial on disable widget block editor and how to install plugins.

Top comments (0)