Skip to content

Instantly share code, notes, and snippets.

@jimmy89Li
Created August 2, 2016 11:50
Show Gist options
  • Save jimmy89Li/d6382bbd19ec603738297077d056958c to your computer and use it in GitHub Desktop.
Save jimmy89Li/d6382bbd19ec603738297077d056958c to your computer and use it in GitHub Desktop.
Custom Font on Editor View
@import url(//fonts.googleapis.com/css?family=Open+Sans);
body {font-family: 'Open Sans', sans-serif; font-size:1em; line-height:1.5em;}
// Load custom CSS for editor view
function my_theme_add_editor_styles() {
add_editor_style( 'css/custom-editor-style.css' );
}
add_action( 'init', 'my_theme_add_editor_styles' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment