public
Last active

Enqueue Google Fonts.

  • Download Gist
functions.php
PHP
1 2 3 4 5 6 7 8
<?php
//* Do NOT include the opening php tag
 
//* Load Lato and Merriweather Google fonts
add_action( 'wp_enqueue_scripts', 'bg_load_google_fonts' );
function bg_load_google_fonts() {
wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Lato:300,700|Merriweather:300,700', array(), CHILD_THEME_VERSION );
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.