Hi, I have a google fonts tegs in my header.
<link rel=’stylesheet’ id=’open-sans-css’ href=’//fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C600italic%2C300%2C400%2C600&subset=latin%2Clatin-ext%2Ccyrillic%2Ccyrillic-ext&ver=4.0.1′ type=’text/css’ media=’all’ />
<link rel=’stylesheet’ id=’google-font-opensans-css’ href=’http://fonts.googleapis.com/css?family=Open+Sans%3A300%2C400%2C600%2C700&subset=latin%2Ccyrillic-ext%2Cgreek-ext%2Cgreek%2Cvietnamese%2Clatin-ext%2Ccyrillic&ver=4.0.1′ type=’text/css’ media=’all’ />
<link rel=’stylesheet’ id=’google-font-ubuntu-css’ href=’http://fonts.googleapis.com/css?family=Ubuntu%3A300%2C400%2C500%2C700%2C300italic%2C400italic%2C500italic%2C700italic&subset=latin%2Ccyrillic-ext%2Cgreek-ext%2Cgreek%2Clatin-ext%2Ccyrillic&ver=4.0.1′ type=’text/css’ media=’all’ />
<link rel=’stylesheet’ id=’google-font-pt-sans-css’ href=’http://fonts.googleapis.com/css?family=PT+Sans%3A400%2C700%2C400italic&subset=latin%2Ccyrillic-ext%2Clatin-ext%2Ccyrillic&ver=4.0.1′ type=’text/css’ media=’all’ />
<link rel=’stylesheet’ id=’google-font-oswald-css’ href=’http://fonts.googleapis.com/css?family=Oswald%3A400%2C300%2C700&subset=latin%2Clatin-ext&ver=4.0.1′ type=’text/css’ media=’all’ />
<link rel=’stylesheet’ id=’google-roboto-cond-css’ href=’http://fonts.googleapis.com/css?family=Roboto+Condensed%3A300italic%2C400italic%2C700italic%2C400%2C300%2C700&subset=latin%2Ccyrillic-ext%2Cgreek-ext%2Cgreek%2Cvietnamese%2Clatin-ext%2Ccyrillic&ver=4.0.1′ type=’text/css’ media=’all’ />
<link rel=’stylesheet’ id=’google-vollkorn-css’ href=’http://fonts.googleapis.com/css?family=Vollkorn%3A400italic%2C700italic%2C400%2C700&ver=4.0.1′ type=’text/css’ media=’all’ />
<link rel=’stylesheet’ id=’google-fonts-style-css’ href=’http://fonts.googleapis.com/css?family=Roboto+Condensed%3A400%2C700&ver=4.0.1′ type=’text/css’ media=’all’ />
But I need only one font Open Sans.
How can I disable unused fonts?
Thanks
Hi,
You have to search and replace each font with open sans throughout the site then remove the other from here: http://screencast.com/t/wPdK93gb
Hope this helps!
Please make sure you make a back-up of your fonts file before you change it so that you can revert back to it if something goes wrong.
Thanks
Will this stop all calls to http://fonts.gstatic.com while the site pages are loading? I’m trying to speed my site up and trying to figure out how to stop google fonts being loaded. Thanks!
-
This reply was modified 11 years by
ninja.
Hi,
Please make sure first that you don’t use them then remove them and see if this solved your problem but make a copy of the file before you do it.
Please also note that the you can use the speed booster plugin to speed up your site, like this: https://forum.tagdiv.com/page-speed-guide/
You can also find many useful info’s and solution regarding issue you might encounter on this topic: https://forum.tagdiv.com/topic/pagespeed/
Hope this helps!
Thanks
Hi Lucian,
In GT Metrix I have the same problem. The test tells me that I am using a lot of google fonts. In the backend I only have two fonts.
http://fotos.subefotos.com/fb854ef983f0085947e2b43d86e3c309o.png
I have looked at td_fonts.php but mine it is not the same as the screenshot.
http://fotos.subefotos.com/f39830c62a7a854adce3d5087eb6ca63o.png
Can you help me?
Thanks
Hi,
If you are using the latest theme version you can find that loaded fonts here: http://screencast.com/t/cJ7eBGRLNB As you can see there are just those two loaded.
In your case the GTMetrix reports a missing cache validator for those fonts. You can see our page speed guide: https://forum.tagdiv.com/page-speed-guide/ ..point 2 (Set the Leverage Browser Caching) and add the .woff files.
You can find more info here: https://developers.google.com/speed/docs/insights/LeverageBrowserCaching#LeverageBrowserCaching
Thanks