Google fonts - Forum | JoomShaper
Solved General

Google fonts

Asked by thank you 4 years ago Last activity 4 years ago

hey Joomshaper Team,

Its not longer allowed to use google fonts without visitor consent (since 20.01.2022, LG München)

My question to host them on my server is:

Do you know in which *.php-file this code is what I mean is: I need the file, where the code is to use googleapis (your code can be very similar to that code here...) I didnt find it....

foreach ($googlefonts as $v) { // loop $app->getDocument()->addStyleSheet('//http://fonts.googleapis.com/css?family=' . $v . ':' . $fontweights . '&&subset=' . $fontsubset . '&display=swap'); }

thanks a lot, claudia

Accepted answer

Marked as the solution

4 more replies

thank you Asked this

thanks Paul

So I do not have to delete this Code? ( I want to be sure, because I know the font can be in every single chapter....) ah I see your files thanks

Would be soooooo thankful if youre Webmaster gonna hear us (or you for the moment)

Paul Frankowski Senior Staff

If you don't want manually disable font in each addon and page, component code customization may save your time.

Yes, I can imagine why German webmasters are so scary now. Madness.

thank you Asked this
4 years ago · edited

Dear Paul,

I didn' get that: component code customization which code would it be? Maybe you can help me once more with a tip?

The next big bang will be this "font awesome" thing... because it needs the IP Adress too

thanks claudia

Paul Frankowski Senior Staff

But font awesome files are loaded locally from your site server, not from US servers.

Sorry, but php customization is on your hands only.
Just open those files in editor and search phrase "fonts.googleapis.com" and make some cuts.

Log in to reply.