Skip to content

Commit

Permalink
Adds style editor support
Browse files Browse the repository at this point in the history
  • Loading branch information
coreymcollins committed Jan 25, 2019
1 parent 95c5a04 commit 48dcf7c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ function _s_setup() {
'slug' => 'huge',
),
) );

// Gutenberg editor styles support.
add_theme_support( 'editor-styles' );
add_editor_style( 'style-editor.css' );
}
endif; // _s_setup
add_action( 'after_setup_theme', '_s_setup' );
Expand Down
6 changes: 6 additions & 0 deletions style-editor.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/**
* Gutenberg Editor Styles
*
* Add custom styles here to style the Gutenberg editor
* https://wordpress.org/gutenberg/handbook/designers-developers/developers/themes/theme-support/#enqueuing-the-editor-style
*/

0 comments on commit 48dcf7c

Please sign in to comment.