Skip to content

Instantly share code, notes, and snippets.

@jonschr
Created March 26, 2020 23:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonschr/212a5b1334320562d7c71ebdb519438a to your computer and use it in GitHub Desktop.
Save jonschr/212a5b1334320562d7c71ebdb519438a to your computer and use it in GitHub Desktop.
Add editor styles which get autoprefixed with .editor-styles-wrapper
function gutenberg_editor_style_setup() {
// Add support for editor styles
add_theme_support( 'editor-styles' );
// Enqueue editor styles
add_editor_style( "/css/gutenberg-style.css" );
}
add_action( 'after_setup_theme', 'gutenberg_editor_style_setup' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment