Archived topic
Removing Google Fonts doesn't work
3 replies · Started by Krempel & Co. Werbeagentur on September 14, 2022
Hello,
I added 2 Google Fonts local using this guide (https://docs.generatepress.com/article/adding-local-fonts/)
Then I followed your guide to remove Google Fonts from Loading via GP and removing it from the customizer using these functions: https://docs.generatepress.com/article/remove-google-fonts/
They don't seem to work anymore – Google Fonts still show up in the customizer and on the homepage google fonts is still loaded via GP:
<link rel='dns-prefetch' href='//fonts.googleapis.com' />
<link rel='stylesheet' id='generateblocks-google-fonts-css' href='https://fonts.googleapis.com/css?family=Lora:regular,500,600,700,italic,500italic,600italic,700italic&display=swap' media='all' />
Are these functions still up to date? Any idea why these are loaded on the homepage but not the subpages?
Regards,
Maurice
Hi there,
that request is being made by the GenerateBlocks Plugin, which means somewhere on your site you have set the a GenerateBlocks typography option.
I scanned your Stylesheets looking for the CSS that is using the Lora font. And if found these:
gb-headline-slider-hl - is this a Global Style
And then in the home page there i a Grid with 3 columns ( Schwimmbad, Floating, Sauna ). The Container Blocks in those columns has the font set there.
You need to edit each of those blocks and tell it NOT to load the google font.
Oh, you're right. I misread that.
Is there a way to tell GB not to use Google Fonts? In a similar fashion like there is in GP?
Not yet. Its under development, we hope to have it in place for GB 1.7.