Created
October 10, 2016 14:37
-
-
Save jeweltheme/f158fb624f185f385a5cfca1fd87b85c 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
function elevation_google_fonts_url() { | |
$font_url = ''; | |
if ( 'off' !== _x( 'on', 'Google font: on or off', 'elevation' ) ) { | |
$font_url = add_query_arg( 'family', urlencode( 'Montserrat:400,700,800|Open Sans:400,300,600,700,800|Roboto:300,400,500,700' ), "//fonts.googleapis.com/css" ); | |
} | |
return $font_url; | |
} | |
function elevation_scripts() { | |
wp_enqueue_style( 'elevation-google-fonts', elevation_google_fonts_url() ); | |
} | |
add_action( 'wp_enqueue_scripts', 'elevation_scripts' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment