Community Forums › Forums › Archived Forums › General Discussion › Where Do I Disable Google Fonts in Eleven40 Pro?
- This topic has 8 replies, 4 voices, and was last updated 8 years ago by
lbartley.
-
AuthorPosts
-
December 28, 2013 at 8:49 pm #81749
William
MemberHi,
I'm using TypeKit fonts on my site, so I don't need to load the Lora and Oswald fonts from Google Fonts. I commented out the section in functions.php that loads the fonts, and I replaced all use of them in styles.css with my TypeKit fonts.
Yes, I still see them loading when I do a performance test using tools.pingdom.com.
What am I missing? Where else do I need to visit to disable Google Fonts?
–William
http://williambeem.comDecember 28, 2013 at 9:04 pm #81755AnitaC
KeymasterDecember 29, 2013 at 11:24 am #81850William
MemberHi, Anita
Thanks for the post. Unfortunately, that doesn't appear to address my problem. I already have the TypeKit fonts loaded and working. However, the Google Fonts are still part of my initial load time and I'm trying to trim them out. I didn't see anything in the post that helped me completely rid the Google Fonts from loading.
–William
http://williambeem.comDecember 29, 2013 at 11:25 am #81851AnitaC
KeymasterLet me send a tweet out to Carrie.
Need help with customization or troubleshooting? Reach out to me.
December 29, 2013 at 11:30 am #81852cdils
ParticipantHi William,
Instead of commenting the line out in functions.php, go ahead and remove it completely. Not sure why it's still loading with those lines commented out, but try it anyway.
Some of the older StudioPress themes used @import in style.css to bring in fonts versus the newer themes now all use the wp_enqueue_scripts function to load them. Since you're using Eleven40 Pro, there shouldn't be an @import in your stylesheet, but you might double-check just to be sure.
Cheers,
Carrie
Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂
I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.
December 30, 2013 at 6:25 pm #82193William
MemberThanks, Carrie.
That worked. Not sure why. I figure commenting should have disabled it, but not so. Once I cut it out, the site stopped trying to load Google Fonts.
It's insidious, those Google Fonts.
–William
http://williambeem.comDecember 30, 2013 at 6:27 pm #82194cdils
ParticipantThat really is weird! Glad that worked though. Pretty Typekit fonts FTW! 🙂
Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂
I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.
May 26, 2018 at 10:05 pm #220259lbartley
MemberI've just tried this same method to disable Google fonts on the AgentPress Pro child theme with limited success. Doing so only removes 3 of the 6 references to google fonts. Can't find any importing going on in the style sheet either. Where else could these calls be coming from?
May 27, 2018 at 11:42 am #220267lbartley
MemberActually, I've found that with AgentPress Pro the "Remove Google Fonts References" plugin does completely remove them while the "Disable Google Fonts" plugin does not. Still, I would rather just edit functions.php or styles.css if possible rather than load up on plugins.
-
AuthorPosts
- The topic ‘Where Do I Disable Google Fonts in Eleven40 Pro?’ is closed to new replies.