Created
November 13, 2018 19:15
-
-
Save DevTarakanova/bc10056c5c895eea6c89bc55c3f126d2 to your computer and use it in GitHub Desktop.
Add Google fonts to editor
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 Google fonts to editor | |
add_action( 'after_setup_theme', 'leaven_editor_fonts' ); | |
function leaven_editor_fonts() { | |
$font_url = str_replace( ',', '%2C', '//fonts.googleapis.com/css?family=Open+Sans:300,400,700|Lora:400italic,700italic' ); | |
add_editor_style( $font_url ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment