Support » Theme: GeneratePress » Tom, optimizing Google fonts

Viewing 1 replies (of 1 total)
  • Theme Author Tom

    (@edge22)

    Hi there,

    GeneratePress does most of this by default.

    The only thing we don’t do by default is the font-display property.

    However, you can do this easily with a filter:

    add_filter( 'generate_google_font_display', function() {
        return 'swap';
    } );

    Let me know if you need more info 🙂

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.