Reply To: Error https://validator.w3.org google fonts

Home Forums Support Error https://validator.w3.org google fonts Reply To: Error https://validator.w3.org google fonts

#209285
Tom
Lead Developer
Lead Developer

Hi there,

Currently, we use the format that Google Fonts suggests.

If you go to their website and add multiple fonts to your collection and get the embed code, you’ll see them using the straight bar.

As for adding more fonts, you can filter them in:

add_filter( 'generate_typography_google_fonts','generate_add_more_fonts' );
function generate_add_more_fonts( $google_fonts )
{
	return $google_fonts . '|Roboto|Lato';
}

Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/

Then just add your CSS:

h5 {
    font-family: 'Roboto', sans-serif;
}

Hope this helps 🙂