diff --git a/inc/actions/namespace.php b/inc/actions/namespace.php index 2aa70c6..6b10528 100644 --- a/inc/actions/namespace.php +++ b/inc/actions/namespace.php @@ -95,6 +95,13 @@ function setup() { // Add shortcode buttons. add_action( 'init', __NAMESPACE__ . '\register_shortcode_buttons' ); + + remove_theme_support( 'widgets-block-editor' ); + + // Disables the block editor from managing widgets in the Gutenberg plugin. + add_filter( 'gutenberg_use_widgets_block_editor', '__return_false' ); + // Disables the block editor from managing widgets. + add_filter( 'use_widgets_block_editor', '__return_false' ); } /**