Skip to content

Instantly share code, notes, and snippets.

@studiopress
Last active May 23, 2017 07:17
Show Gist options
  • Save studiopress/6796453 to your computer and use it in GitHub Desktop.
Save studiopress/6796453 to your computer and use it in GitHub Desktop.
Load Google Fonts.
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
//* Enqueue Lato Google font
add_action( 'wp_enqueue_scripts', 'sp_load_google_fonts' );
function sp_load_google_fonts() {
wp_enqueue_style( 'google-font-lato', '//fonts.googleapis.com/css?family=Lato:300,700', array(), CHILD_THEME_VERSION );
}
/*
Imports
---------------------------------------------------------------------------------------------------- */
@import url(//fonts.googleapis.com/css?family=Lato:300,700);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment