Google Fonts

Hello,

I am just wondering if it’s possible to prevent the load of these Google font’s on an X site?

link rel=“stylesheet” type=“text/css” id=“cp-google-fonts” href=“https://fonts.googleapis.com/css?family=Bitter|Lato|Libre+Baskerville|Montserrat|Neuton|Open+Sans|Pacifico|Raleway|Roboto|Sacramento|Varela+Round|Lato|Open Sans|Libre Baskerville|Montserrat|Neuton|Raleway|Roboto|Sacramento|Varela Round|Pacifico|Bitter”

Thanks

Hey,

You can remove the Google fonts adding the follow code at your functions.php

function my_deregister_styles() {
	wp_deregister_style( 'x-google-fonts' );
}```

Thanks John

I found that before but it didn’t work so will try again & let you know if problem.

Cheers

Sure, let us know how it goes.

Thanks.

Hi guys,

Actually the code messes up the fonts on iPhone on Safari. This was the problem I ran into before.

It loads source sans pro (body) font ok, but the poppins (heading) fonts don’t load properly. I have not tested on other devices & seems to load ok on desktop Safari.

Any help appreciated. Cheers

Sorry for the confusion. cp-google-fonts is from ConvertPlus and not sure why it loads that many fonts. I’ll forward this to our development team. There’s currently no solution to this. Try removing the modal from your page or deactivate ConvertPlus entirely. Please stay tuned for updates.

Thanks.

OK cool. I didn’t notice cp-google-fonts. I can’t really disable it because we use it throughout the site really.

Any chance you could send me an email when you do find a solution? I would like to keep those requests off.

Also, I don’t see how the above code would mess with ConvertPlus because it’s x-google-fonts? Let me know.

Cheers

Hi There,

There’s an option in Convertplus settings to disable Google fonts. See this: https://screencast-o-matic.com/watch/cbQVXIIemq