Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save idavinder/53699ae8af798377a99f to your computer and use it in GitHub Desktop.
Save idavinder/53699ae8af798377a99f to your computer and use it in GitHub Desktop.
Add multiple Google Fonts to Genesis Theme
//* Add multiple Google Fonts in Genesis - http://www.basicwp.com/?p=2054
add_action( 'wp_enqueue_scripts', 'genesis_ig_multiple_google_fonts' );
function genesis_ig_multiple_google_fonts() {
wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Lato|Open+Sans|Oswald:400,300,700', array(), CHILD_THEME_VERSION );
}
@mparraud
Copy link

I've tried this but I got the following message:

( ! ) Warning: Use of undefined constant CHILD_THEME_VERSION - assumed 'CHILD_THEME_VERSION' (this will throw an Error in a future version of PHP) in /Users/mparraud/Local Sites/genesis/app/public/wp-content/themes/monochrome-pro/functions.php on line 338


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment