Difficult time with add_editor_style
-
I have not been successful getting
add_editor_style
to work with Gutenberg.The code I am using:
function supersimple_editor_styles() { add_theme_support( 'editor-styles' ); add_editor_style( 'css/type.css' ); } add_action( 'after_setup_theme', 'supersimple_editor_styles' );
The stylesheet does not load and no styles applied.
I have also tried the action hook
enqueue_block_editor_assets
and that has not worked. I have also tried just putting it into functions.php with no hook. I have also tried the default name editor-style.css and simply useadd_editor_style()
but no luck there either.I have been able to use
wp_enqueue_style
on theenqueue_block_editor_assets
hook but then the stylesheet is not filtered and styles everything outside the edit area though not the h1 etc in the edit area.Please a poor fellow. Thanks in advance.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Difficult time with add_editor_style’ is closed to new replies.