Skip to content

Instantly share code, notes, and snippets.

@marisqaporter
Last active August 29, 2015 14:20
Show Gist options
  • Save marisqaporter/49585594e859539b842f to your computer and use it in GitHub Desktop.
Save marisqaporter/49585594e859539b842f to your computer and use it in GitHub Desktop.
Google Font Enqueue
//* Enqueue Google Font - replace with your google font details on line 4
add_action( 'wp_enqueue_scripts', 'sp_load_google_fonts' );
function sp_load_google_fonts() {
wp_enqueue_style( 'google-font-montserrat', '//fonts.googleapis.com/css?family=Montserrat+Alternates:400,700|Montserrat:400,700', array(), get_template_directory_uri() . '/style.css' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment