[Resolved] Removing Unneeded Fonts

Home Forums Support [Resolved] Removing Unneeded Fonts

Home Forums Support Removing Unneeded Fonts

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1605433
    Janine

    Hi.

    How do I remove unneeded fonts? Thank you.

    #1605757
    Elvin
    Staff
    Customer Support

    Hi,

    If you kept all your fonts on Appearance > Customize > Typography, you can remove some of the unused variants:
    https://docs.generatepress.com/article/google-font-variants/

    And if you don’t use Google fonts at all(hosting fonts locally), use this function:

    add_action( 'wp_enqueue_scripts', function() {
        wp_dequeue_style( 'generate-fonts' );
    }, 100 );

    A wise man once said:
    "Have you cleared your cache?"

    #1606206
    Janine

    In other words, if I select two fonts: one for my headings and one for the body and three variants, I am then only loading those two fonts and the three selected variants? See screenshots.

    Thank you.

    #1606367
    David
    Staff
    Customer Support

    Hi there,

    thats correct, GP will only make the request for those fonts and the variants you have left enabled.

    #1606368
    Janine

    Thank you, David.

    #1606720
    David
    Staff
    Customer Support
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.