DEV Community

Aman Mehra
Aman Mehra

Posted on

1 1

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.

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

Top comments (0)

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started