Created
October 20, 2013 22:37
-
-
Save jamiemitchell/7076221 to your computer and use it in GitHub Desktop.
Add google fonts to Genesis, includes some popular fonts.
This file contains hidden or 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
<?php | |
/* Enqueue google fonts | |
------------------------------------------------------------ */ | |
add_action( 'wp_enqueue_scripts', 'genesis_sample_google_fonts' ); | |
function genesis_sample_google_fonts() { | |
wp_enqueue_style( 'google-font-raleway', '//fonts.googleapis.com/css?family=Raleway:400,700,800,900', array(), CHILD_THEME_VERSION ); | |
wp_enqueue_style( 'google-font-karla', '//fonts.googleapis.com/css?family=Karla:400,700', array(), CHILD_THEME_VERSION ); | |
wp_enqueue_style( 'google-font-lato', '//fonts.googleapis.com/css?family=Lato:400,700', array(), CHILD_THEME_VERSION ); | |
wp_enqueue_style( 'google-font-sans', '//fonts.googleapis.com/css?family=Open+Sans:400,700', array(), CHILD_THEME_VERSION ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment