Last active
April 16, 2019 16:10
-
-
Save wplit/a1cf4a9dd5d9a1413ab01b56d68cf9d5 to your computer and use it in GitHub Desktop.
Add backend styles for gutenberg, where style-editor.css is not available from theme. (like with Oxygen)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'enqueue_block_editor_assets', 'lit_add_gutenberg_styles' ); | |
/** | |
* Add backend styles for Gutenberg | |
*/ | |
function lit_add_gutenberg_styles() { | |
wp_enqueue_style( 'custom-gutenberg-editor-styles', plugin_dir_url( __FILE__ ) . '/editor-styles.css'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment