Disable fonts.googleapis.com

Hi,

I use some googlefonts with your X Theme, but I like them to be self hosted.
I already uploaded the fonts to my server and added the custom css.

Now I like to disable X to load fonts.googleapis.com

I tried serveral plugins like autoptimize, remove-google-fonts-references or disable-google-fonts

But the URL fonts.googleapis.com is still called in the network log of my site:
https://one-million-places.com/reiseberichte/europa/schweiz/sehenswuerdigkeiten-zuerich

It looks that all of these plugins didn´t work with X or my X child.
Have you any idea how to disable google fonts loading?

Also I have disabled my Google Analytics code under X > Google Analytics
But when you check my site you can see that Google Analytics is still active.

Do you know why?

Michael

Hi Michael,

Thanks for writing in! Please follow this post (https://theme.co/apex/forum/t/dequeue-google-fonts/3553/11?u=mldarshana) and try adding it into your child theme’s functions.php file. To setup a child theme, you can refer to the following post (https://theme.co/apex/forum/t/setup-how-to-setup-child-themes/57).

With regard to Google Analytics issue, I could not see analytics code on your site. Please try clearing your cache and re-test.

Thanks!

Hi,

I added your code to my X child functions.php

And I deleted my browser cache and also the cache from WP Rocket.
But I can still see API calls to fonts.googleapis.com and google-analytics (see screenshot)
https://one-million-places.com/google-screenshot.jpg

Can you please check this again?

Michael

Hi Michael,

It could be coming from a plugin.

You can try deactivating your plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

Let us know how it goes!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.