Skip to content

Instantly share code, notes, and snippets.

@jennimckinnon
Last active January 31, 2024 17:46
Show Gist options
  • Select an option

  • Save jennimckinnon/a65d307e9a3fcf8faa5e to your computer and use it in GitHub Desktop.

Select an option

Save jennimckinnon/a65d307e9a3fcf8faa5e to your computer and use it in GitHub Desktop.
function load_fonts() {
wp_register_style('et-googleFonts', 'place Google link here');
wp_enqueue_style( 'et-googleFonts');
}
add_action('wp_print_styles', 'load_fonts');
@hocu
Copy link
Copy Markdown

hocu commented Nov 11, 2015

There should be a comma "," between items in $query_args array, not at the end:

'family' => 'Open+Sans:400,700|Oswald:700',
        'subset' => 'latin,latin-ext'

@Thomas-A-Reinert
Copy link
Copy Markdown

@hocu Yup, I can confirm that. The above example will throw an error, your´s won´t. Thx.

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