Created
October 21, 2015 20:31
-
-
Save alisonmf/924969b59915b0515ee6 to your computer and use it in GitHub Desktop.
add fonts in editor styles
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
//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