|
@@ -31,9 +31,10 @@ function dw_plugs() {
|
|
|
endif;
|
|
|
|
|
|
function dw_editor() {
|
|
|
- //add_editor_style( 'style.css' );
|
|
|
+ wp_enqueue_style( 'dw-gutenberg', get_theme_file_uri( '/css/editor.css' ), false, '@@pkg.version', 'all' );
|
|
|
}
|
|
|
-add_action( 'init', 'dw_editor' );
|
|
|
+add_action( 'enqueue_block_editor_assets', 'dw_editor' );
|
|
|
+
|
|
|
|
|
|
add_action( 'wp_enqueue_scripts', 'dw_scripts' );
|
|
|
function dw_scripts() {
|