Skip to content

Instantly share code, notes, and snippets.

@cjkoepke
Last active August 29, 2015 14:27
Show Gist options
  • Save cjkoepke/a2131b2edaf60a616029 to your computer and use it in GitHub Desktop.
Save cjkoepke/a2131b2edaf60a616029 to your computer and use it in GitHub Desktop.
Enqueue Google fonts properly in Genesis.
<?php
//* Do NOT include the opening php tag
//* Load Google Fonts
add_action( 'wp_enqueue_scripts', 'ck_load_google_fonts' );
function ck_load_google_fonts() {
wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Lato:400,700|Neuton:400', array(), CHILD_THEME_VERSION );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment