This commit is contained in:
Alexander Agnarson 2021-07-03 12:45:54 +02:00
parent f03228a6b4
commit f73363cee2
14 changed files with 59 additions and 33 deletions

View file

@ -91,8 +91,10 @@ class Kirki_Modules_CSS {
return;
}
// Admin styles, adds compatibility with the new WordPress editor (Gutenberg).
add_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_styles' ), 100 );
if ( ! is_customize_preview() ) {
// Admin styles, adds compatibility with the new WordPress editor (Gutenberg).
add_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_styles' ), 100 );
}
add_action( 'wp', array( $this, 'print_styles_action' ) );