Archived topic
Can't find where Google Font is loading from
3 replies · Started by Daniel on June 9, 2021
Hey all - I'm new to the forum so just want to say I absolutely love GeneratePress. Seriously brilliant. I'm working on my website - https://www.backandpack.com/ - and trying to optimize via PageSpeed. I noticed Google Fonts in loading - <link rel='stylesheet' id='generateblocks-google-fonts-css' href='//fonts.googleapis.com/css?family=Poppins:700&display=swap' media='all' /> - when I view the source, but for the life of me can't find where "Poppins" is on the page. I added the php here - https://docs.generatepress.com/article/remove-google-fonts/ and have basically gone through every sneaky place I can think of. Am I missing something obvious? Any suggestions?
Hi Daniel,
Looking at the id of the element, it's coming from GenerateBlocks.
GenerateBlocks will only load Google fonts if it detects that one of its blocks are set to use it.
One of your Headline blocks likely has Google font option toggled on.
Thanks Elvin - that helped me narrow it down a bit. I checked all the default headlines and typography settings. Everything was set to a different font. I even went headline by headline on the page to see if something wasn't set to the default fonts - and didn't find the issue initially. But I did just now. It seems I had a couple social media icons in the footer with "Remove Text" switched on. When I switched that off, the Typography settings appeared and both were set to Poppins. Sneaky sneaky! Anyway, all better now. Thanks for the help!
Ah yes! I forgot about that.
Nice catch! glad you got it sorted. :)