How to Disable WordPress Block Widgets Screen

Posted by Lasantha Bandara on August 28th, 2021 File Under : widget, wordpress0 Comment

WordPress Block Widgets Screen

With WordPress 5.8, old widgets screen was replaced by new block widgets screen. You can now add any block to your site's widget areas. Also all of your classic widgets still work flawlessly with this new block screen. But if you want to stick with the WordPress's old widgets screen, add the code given below into your theme's "functions.php" file:

// 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' );

File Under : widget, wordpress

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.