• Resolved Ashley

    (@ashleypearceihr)


    Hey,

    I’ve been running some tests and I think the answer is “no” to my question “are Google Fonts loaded locally with Twentig” (i.e. from the hosting server, not the Google Fonts server)

    However, I’m not seeing Google Fonts in the waterfall diagram when reviewing the page load.

    Not a developer, but technically competent with managing WordPress – so this question comes from someone who’s keen on trying to improve page speed.

    Thanks in advance

    p.s. if not loaded locally, how would you advise “disabling Google Fonts”?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Twentig

    (@twentig)

    Hi,

    Yes, you are right. The Google Fonts aren’t hosted locally and are hosted by Google Fonts servers.

    To “disable Google Fonts” you can either choose the default theme fonts that are hosted locally or the System font.

    Have a nice day,
    Yann

    I would like to use Twentig, but I’m concerned about using Google hosted fonts. I just read the article on WP Tavern where, “www.ads-software.com Strongly Urges Theme Authors to Switch to Locally Hosted Webfonts.

    Do you have plans to allow Twentig to host fonts locally rather than relying on Google’s CDN? Also perhaps support hosting custom fonts as part of the plugin?

    Sorry. Newbie here. Forgot to check the box to be notified of replies via email and just learned I can’t do that after the fact with an empty post.

    Thread Starter Ashley

    (@ashleypearceihr)

    Hey @taw22ala
    I found you can manually disable Google Fonts by adding some PHP either to the functions.php OR using your favourite PHP inserter plugin

    I use Code Snippets by WP Beginner to insert code snippets on many sites where we’re not customising the theme heavily anyway.

    If using Twenty Twenty One you can add the following snippet:

    //*  Remove Google Fonts 
    
    add_action( 'wp_print_styles', 'tn_dequeue_twentytwentyone_fonts_style' );
    function tn_dequeue_twentytwentyone_fonts_style() {
          wp_dequeue_style( 'twentytwentyone-fonts' );
    }

    However – I do agree, I’d prefer if @twentig could just introduce this option into the options set – it should be a simple toggle – and as you say, will become the defacto standard in coming years.

    Cheers

    Ash

    • This reply was modified 2 years, 5 months ago by Ashley.

    Hello Ash,

    Thanks for the follow-up. I still haven’t learned much about PHP, though I find myself having to figure out some CSS. I guess I’m looking for this “no-code” solution of Full Site Editing but often finding some form of code and/or plugin is required for many tasks.

    There are also a couple of plugins mentioned in the WP Tavern article I referenced above which I’m also going to try.

    Thanks,
    Ted

    Plugin Author Twentig

    (@twentig)

    Hi there,

    We’ve just released Twentig 1.4.6 Adds, which adds the option to host the Google Fonts locally.

    For the Twenty Twenty-One and Twenty Twenty themes: you can find the option under Customizer > Twentig Options > Fonts > Font Hosting.

    For the Twenty Twenty-Two theme or any block theme: you can find the option under Site Editor > Twentig Styles > Typography > Font Hosting. Please note that Google Fonts are now hosted locally by default for the block themes.

    Have a nice day,
    Yann

    Thank you, Yann. This is good news, especially the local by default for block themes! I will definitely check out the update.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Are Google Fonts Loaded Locally With Twentig?’ is closed to new replies.