Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Apply theme's stylesheet to the visual editor.
add_action( 'init', 'cd_add_editor_styles' );
/**
* Apply theme's stylesheet to the visual editor.
*
* @uses add_editor_style() Links a stylesheet to visual editor
* @uses get_stylesheet_uri() Returns URI of theme stylesheet
*/
function cd_add_editor_styles() {
add_editor_style( get_stylesheet_uri() );
}
@BradSmithSC

This comment has been minimized.

Copy link

@BradSmithSC BradSmithSC commented Oct 25, 2013

Thanks for posting this Carrie.

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.