[Support request] Google fonts GP

Home Forums Support [Support request] Google fonts GP

Home Forums Support Google fonts GP

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1411285
    Howard

    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

    #1411301
    Leo
    Staff
    Customer Support

    Hi there,

    I don’t believe there is a Google font called Ariel. Do you mean Arial?
    https://fonts.google.com/?query=Aria

    If so absolutely 🙂

    #1411405
    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">

    #1411422
    Leo
    Staff
    Customer Support

    Sorry what do you mean by that?

    #1411448
    Howard

    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&#8221; rel=”stylesheet”>

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

    #1411462
    Leo
    Staff
    Customer Support

    This code along should work for all google fonts:

    add_filter( 'generate_google_font_display', function() {
        return 'swap';
    } );
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.