Skip to content

Instantly share code, notes, and snippets.

@alisonmf
Created October 21, 2015 20:31
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 alisonmf/924969b59915b0515ee6 to your computer and use it in GitHub Desktop.
Save alisonmf/924969b59915b0515ee6 to your computer and use it in GitHub Desktop.
add fonts in editor styles
//pulls in the fonts from fonts.com
function gob_add_editor_styles() {
$font_url = str_replace( ',', '%2C', '//url.com/style.css' );
add_editor_style( $font_url );
}
add_action( 'after_setup_theme', 'gob_add_editor_styles' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment