Skip to content

Instantly share code, notes, and snippets.

@lancewillett
Created August 28, 2012 02:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lancewillett/3494374 to your computer and use it in GitHub Desktop.
Save lancewillett/3494374 to your computer and use it in GitHub Desktop.
/**
* Loads our special font CSS file.
*
* To override in a childe theme, simply unhook the 'twentytwelve_custom_font_style' action.
*
* @since Twenty Twelve 1.0
*/
function twentytwelve_custom_font_style() {
$protocol = is_ssl() ? 'https' : 'http';
wp_enqueue_style( 'twentytwelve-fonts', "$protocol://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700", array(), null );
}
add_action( 'wp_enqueue_scripts', 'twentytwelve_custom_font_style' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment