Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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