Created
September 25, 2016 05:40
Star
You must be signed in to star a gist
Custom font
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_action( 'wp_enqueue_scripts', 'custom_google_fonts' ); | |
function custom_google_fonts() { | |
wp_enqueue_style( 'custom-font', "//fonts.googleapis.com/css?family=Roboto:400,300,100,500"); | |
} | |
To include multiple fonts at once, add the | separator, like so | |
wp_enqueue_style( 'custom-font', "//fonts.googleapis.com/css?family=Roboto:400,300,100,500|Roboto+Slab:400,300,100,500"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment