Created
August 18, 2017 19:45
-
-
Save CNick/f42465c349075bd073becf1fa97c9dc4 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
/* | |
* Enqueue Google fonts | |
* Replace font link as needed for different fonts. | |
* Get the fonts link from Google after adding font family (or families) | |
* and selecting the font weights and styles. | |
*/ | |
add_action( 'wp_enqueue_scripts', 'prefix_scripts_styles' ); | |
function prefix_scripts_styles() { | |
wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Open+Sans:400,400i,600,600i,700,700i|Roboto:400,400i,500,500i,700,700i', array(), '1.3.1' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment