Created
March 16, 2012 14:08
-
-
Save pdewouters/2050206 to your computer and use it in GitHub Desktop.
enqueue google 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
| add_action('wp_enqueue_scripts', 'child_load_scripts_styles'); | |
| // Load necessary scripts and styles | |
| function child_load_scripts_styles(){ | |
| if( is_admin() ) | |
| return; | |
| // google fonts | |
| wp_enqueue_style( 'opensans-gf', 'http://fonts.googleapis.com/css?family=Open+Sans', false, false, 'screen' ); | |
| wp_enqueue_style( 'lemon-gf', 'http://fonts.googleapis.com/css?family=Lemon', false, false, 'screen' ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment