Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Inject styles into Gutenberg without the prefix
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
You can’t perform that action at this time.