Created
March 5, 2014 16:33
-
-
Save xavierartot/9370766 to your computer and use it in GitHub Desktop.
charging in the front Google font
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
78 if(esc_attr( get_option('font-type') ) == 'google' ) { | |
79 $fonts_l = esc_attr( get_option('fonts-l') ); | |
80 global $fonts_l; | |
81 add_action('wp_print_styles', 'add_google_fonts'); | |
82 function add_google_fonts() { | |
83 global $fonts_l; | |
84 $fonts_l = 'http://fonts.googleapis.com/css?family='.trim($fonts_l); | |
85 wp_register_style('GoogleFonts', $fonts_l); | |
86 wp_enqueue_style('GoogleFonts'); | |
87 } | |
88 } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment