Created
September 14, 2019 17:02
-
-
Save topleague/626636ca66589f4303b857e74b3b04f6 to your computer and use it in GitHub Desktop.
ADD EDITOR STYLE TO YOUR WORDPRESS THEME
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 EDITOR STYLE TO YOUR WORDPRESS THEME | |
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( 'custom-styles.css' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment