Site logo

Archived topic

How To Disable Google Fonts In Generatepress Theme? Full Guide Please

14 replies · Started by Nithin on December 10, 2021

Viewing posts 1–15 of 15

How To Disable Google Fonts In Generatepress Theme? Full Guide Please

Hi
I used PHP in Code Snippet to remove google fonts but it didn't work. Also in function.php. What can I do wrong?
greetings

I used PHP in Code Snippet to remove google fonts but it didn’t work

Can you explain what didn't work?

Can you link us to your site?

Hi
The website is torun.salezjanie.pl

Hi
Is there any way to identify this block? I searched block by block for example on the home page, also in Elements.

The places you show are Open Sans but not Google Fonts just locally loaded. Like Ubuntu.

I have disabled the cache plugin, do you need access to the cockpit?

If so, I can't tell where exactly the open sans google font is being called.
https://www.screencast.com/t/vJxUs9aRq2XY

Maybe you need to check one block by one block to see if there's any of them toggled the google fonts option.
Because GB or GP won't load google fonts if there's no Google font is set anywhere on the site.

The PHP snippets are out of date, because we introduced the new typography system to GP, so the snippets are no longer needed.

And the snippets were for GP, not GB.

Can you try disable GB to see if the site still requests google fonts?

Thanks for the hint. Tomorrow I will make a site clone and check without GB.

Tomorrow I will make a site clone and check without GB.

Making a staging site is a good idea :)

This archived topic is closed to new replies.