Site logo

Archived topic

Google fonts GP

5 replies · Started by Howard on August 20, 2020

Viewing posts 1–6 of 6

Generatepress says it uses top 200 google fonts embedded into GP premium. I use “ARIEL” for WP posts. I assume this is included?
Thanks
Howard

Ye... thanks!
The other day Tom gave me a code for google font swamp;

I saw this as well- is it viable?

<link href="https://fonts.googleapis.com/css?family=Open+Sans&display=swap" rel="stylesheet">

Sorry what do you mean by that?

By default browser will wait until the Google Fonts are downloaded to display the font. This is the reason for the error ‘ensure text remains visible during webfont load’ in Google PageSpeed Insights

Toms CODE i PUT INTO SNIPPETS
add_filter( 'generate_google_font_display', function() {
return 'swap';
} );

code i saw from google post:
<link href="https://fonts.googleapis.com/css?family=Open+Sans&display=swap" rel="stylesheet">

What is the difference.....I see it says a particular font...open sans
I use ARIAL
HOWARD

This code along should work for all google fonts:

add_filter( 'generate_google_font_display', function() {
    return 'swap';
} );
This archived topic is closed to new replies.