Created
December 14, 2015 04:25
-
-
Save taniarascia/c85d2a671e8dd0ce676a to your computer and use it in GitHub Desktop.
Google Fonts
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
// Google Fonts | |
function load_fonts() { | |
wp_register_style('OpenSans', 'http://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800'); | |
wp_register_style('NotoSerif', 'http://fonts.googleapis.com/css?family=Noto+Serif:400,700'); | |
wp_register_style('RobotoMono', 'http://fonts.googleapis.com/css?family=Roboto+Mono:400,300,500,700'); | |
wp_enqueue_style( 'OpenSans'); | |
wp_enqueue_style( 'NotoSerif'); | |
wp_enqueue_style( 'RobotoMono'); | |
} | |
add_action('wp_print_styles', 'load_fonts'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment