Add custom editor styles in child theme
-
Hello!
I’m using a Page Builder Framework Child theme and wanted to add some custom styles for the gutenberg editor. Since the last WordPress update 5.4 the headings (h2, h3 and so on) have a different style in the editor than on front end.
Page Builder Framework seems to use the file “block-editor-styles.css” to style the gutenberg editor but when I add that to my child theme it does not work.
I also tried the “classic” method by adding the style sheet to my functions.php:function legit_block_editor_styles() { wp_enqueue_style( 'legit-editor-styles', get_theme_file_uri( '/css/style-editor.css' ), false, '1.0', 'all' ); } add_action( 'enqueue_block_editor_assets', 'legit_block_editor_styles' );
Both methods don’t seem to work. Could anyone give me a hint how to add those styles?
Thank you very much!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Add custom editor styles in child theme’ is closed to new replies.