Stepholt News

deactivate new widget block editor WordPress

This article was published on: 07/31/21 8:58 AM

If you have update WordPress to the last version and noticed the new Gutenberg style widget edit please add the following to you theme’s functions.php files to disable it.

We understand why the team at WordPress are looking to improve the ability to easily edit the backend of WordPress but it’s driving us, developers, crazy by making it harder to customise after developing on WordPress for over a decade. Also clients being confused as to why its there and needing it reverting back due to it not being easier for them.

 

To deactivate new widget block editor WordPress please insert the following


// deactivate new block editor
function phi_theme_support() {
remove_theme_support( 'widgets-block-editor' );
}
add_action( 'after_setup_theme', 'phi_theme_support' );

Website Design
Website Development
Website Marketing