Home › Forums › Support › Google Fonts And PageSpeed Insights › Reply To: Google Fonts And PageSpeed Insights
Hi Paula,
This is actually kind of funny, because Google is complaining about the optimization of a file they serve.
So basically, you don’t have to worry about this.
Even when using the Google Fonts website to choose your fonts, they give you these instructions:
Instructions: To embed your Collection into your web page, copy the code as the first element in the <head>
of your HTML document.
This is exactly what GeneratePress does for you – it loads the stylesheet provided by Google into the
section of your website.Of course, you can stop GeneratePress from doing this for you with the following PHP snippet:
add_action('after_setup_theme','generate_remove_google_fonts_stylesheet');
function generate_remove_google_fonts_stylesheet()
{
remove_action('wp_enqueue_scripts','generate_display_google_fonts', 0);
}
This will allow you to choose the font you want in the Customizer as you usually would, but then you’ll have to go to http://www.google.com/fonts, choose your fonts, and follow their directions on how to add them.
Hope this helps 🙂