Created
March 26, 2020 23:25
-
-
Save jonschr/3f03cd04e3d62274a80e7a218f1cc9d2 to your computer and use it in GitHub Desktop.
Inject styles into Gutenberg without the prefix
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
function add_relative_styles_to_gutenberg() { | |
wp_enqueue_style( 'gutenberg-blog', get_theme_file_uri( '/css/gutenberg-blog.css' ), false ); | |
} | |
add_action( 'enqueue_block_editor_assets', 'add_relative_styles_to_gutenberg' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment