Google Fonts on under construction page

I’ve try to deactivate google fonts on the under construction page for the gpdr compliance. But even with the

add_filter( 'cs_load_google_fonts', '__return_false' );

it still loads google fonts!!!

And font manager with no google font selected won’t work either!

Hi @Regnalf,

Thanks for reaching out.
I have discussed with my senior colleague Rad and found that the filter cs_load_google_fonts is only applicable to the Theme, not the extension you are using. If you still want to remove the Gooogle font from the extension, you can directly edit the /plugins/tco-under-construction/functions/enqueue/styles.php file and comment or remove the following code around line no. 47.

@import url(//fonts.googleapis.com/css?family=Lato:300,700);

Hope it helps.
Thanks

Thx, i found the line, and another line too:

@import url(//fonts.googleapis.com/css?family=Lato:300,700); 
@import url(//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css);

Maybe you could add an option to deactivate it by default?

Hi @Regnalf,

If you want to deactivate the Font Awesome then you need to remove or comment out the second line. For now, there is no plan to add any option to deactivate those.

Thanks

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