From 17b2f19b2228c8b97c6a67f196a8aa33fbb87070 Mon Sep 17 00:00:00 2001 From: James Rosado Date: Fri, 18 Jun 2021 10:26:32 -0400 Subject: [PATCH] disable gutenberg widgets editor --- src/includes/class-boldgrid-framework-widgets.php | 1 + src/includes/customizer/class-boldgrid-framework-customizer.php | 1 + 2 files changed, 2 insertions(+) diff --git a/src/includes/class-boldgrid-framework-widgets.php b/src/includes/class-boldgrid-framework-widgets.php index 9fc66a776..eacffc0c6 100644 --- a/src/includes/class-boldgrid-framework-widgets.php +++ b/src/includes/class-boldgrid-framework-widgets.php @@ -198,6 +198,7 @@ public function sort_sidebars() { * @since 2.0.3 */ public function add_dynamic_actions() { + remove_theme_support( 'widgets-block-editor' ); foreach ( $this->configs['widget']['sidebars'] as $widget ) { $action = function() use ( $widget ) { bgtfw_widget( $widget['id'], true ); diff --git a/src/includes/customizer/class-boldgrid-framework-customizer.php b/src/includes/customizer/class-boldgrid-framework-customizer.php index f3d11d222..57f7dfcac 100644 --- a/src/includes/customizer/class-boldgrid-framework-customizer.php +++ b/src/includes/customizer/class-boldgrid-framework-customizer.php @@ -66,6 +66,7 @@ public function __construct( $configs ) { */ public function kirki_controls() { global $wp_customize; + remove_theme_support( 'widgets-block-editor' ); foreach ( $this->configs['customizer']['controls'] as $control ) { if ( isset( $control['type'] ) && 'radio' !== $control['type'] ) {