Last active
January 2, 2016 20:09
-
-
Save jacknycz/8355186 to your computer and use it in GitHub Desktop.
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
/** | |
* Register FONTNAME. | |
*/ | |
function THEME_NAME_font_url() { | |
$font_url = ''; | |
$font_url = add_query_arg( 'family', urlencode( 'Lato:300,400,700,900,300italic,400italic,700italic' ), "//fonts.googleapis.com/css" ); | |
return $font_url; | |
} | |
function THEME_NAME_scripts() { | |
// Add FONT NAME font, used in the main stylesheet. | |
wp_enqueue_style( 'THEME_NAME-lato', THEME_NAME_font_url(), array(), null ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment