1. silvias1963
  2. Commercial Templates
  3. Friday, 11 May 2018
  4.  Subscribe via email
Hi,
in Europe, a new data protection regulation applies. Following question:

Can I get instructions for my various pages built with joomla 51 templates, how to integrate googe fonts via your own server?

Many thanks.

Silvia
Accepted Answer Pending Moderation
0
Votes
Undo
Hi, Ciaran!

I still have a problem with the google fonts. At the template Ashley I could cut the connection to google. Look here: https://hofffnungskirche-herten.de

The template serenity does not work, when I comment out the line with the googlefont-link, the page is no longer reachable.
Can you help me? https://xn--elkemlle-r4a.de/

Regards, Silvia

PS: unfortunately, there have been warnings about the google fonts and the new data protection law. :(





Hi Silvia, if you are willing to spend 1 EUR you can also try this plug in - worked for me ...

https://extensions.joomla.org/extension/jmg-disable-google-font/


Michael
  1. more than a month ago
  2. Commercial Templates
  3. # 21
Accepted Answer Pending Moderation
0
Votes
Undo
Hi, Michael!

Ich habe dieses Plugin gekauft. Aber es macht genau das, was ich auch manuell gemacht habe. Und danach ist die Seite tot!

LG, Silvia
  1. more than a month ago
  2. Commercial Templates
  3. # 22
Accepted Answer Pending Moderation
0
Votes
Undo
hmmm ... das ist komisch, hat bei mir bei mindestens 3 verschiedenen Joomla51 Templates geklappt ....
  1. more than a month ago
  2. Commercial Templates
  3. # 23
Accepted Answer Pending Moderation
0
Votes
Undo
Hallo, Michael!
Bei mir hat es ja auch bei mehreren geklappt. Aber nicht bei dem genannten. Deswegen hoffe ich auf Ciaran. :D

LG, Silvia
  1. more than a month ago
  2. Commercial Templates
  3. # 24
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Silvia

Have you tried selecting only websafe fonts (Arial) in your template settings? Ensure to also include the logo ('Logo' tab).

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 25
Accepted Answer Pending Moderation
0
Votes
Undo
Hi, Ciaran.
No, I downloaded the fonts to the server and used the code in custom css.
LG, Silvia
  1. more than a month ago
  2. Commercial Templates
  3. # 26
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Silvia

Honestly considering Google fonts has just 1 CSS request per font family, per day, per browser, containing just the IP address. This can not go against GDPR as transfer of an IP number is unavoidable no matter what (that is just how the internet works).

Regardless may I suggest sending temporary administration access to your Joomla installation to info@joomla51.com and we will disable google fonts for you. For our reference please paste a link to this post in your email.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 27
Accepted Answer Pending Moderation
0
Votes
Undo
Hello,

In Germany loading Google Fonts is a problem in GDPR (sould be same in whole Europe). And this is because an IP address is a personal identifier.
The layers I talked to recommend to localise the fonts and not to use GoogleFonts.

I have this problem all the time and I solve it in the way I describe below. Without any plugins. I hope I can help a bit.
BTW, I use Jasmine template as example template.
This description only works with the newer J51 templates.


For localising your Googlefont go to the website of Google Webfonts Helper: https://google-webfonts-helper.herokuapp.com/fonts
There you get all CSS and font files you need.

In the upper left corner you can search for your font. E.g. choose "Open Sans".
There are two search results, Open Sans and Open Sans Condensed. Click on Open Sans.

At #1 Select charsets: if you need another charset than latin (which is for western languages like English, German, Italian and so on) choose it.

Than go to #2. There you can choose all font styles you probably need, like 300 , 300 italic and so on. Regular is size 500 at Open Sans and so on.

Go to #3: here you get all the CSS you need (for the styles you have choosen at #2).
I always create a new CSS file called "local-fonts.css" (you can choose a name you want^^), but you can also copyit to the custom.css if you use one.
After that I copy the css code to this file.

At #4 you can download the zip file with all styles you have choosen before. Save the file locally and unzip it.


Now you should open your FTP program like FileZilla and connect to your server with your Joomla installation and got to the templates folder.

Transfer the local-fonts.css file to the CSS folder of the template. E.g. in Jasmine template it is "/templates/j51_jasmine/css/".
Then copy all the files from the unzip folder via FTP to the folder "/templates/j51_jasmine/fonts/" in your template folder.
If you do it like this you do not have to change the references in the local-fonts.css. All URL's in that css file point to the correct font file.
References in your locals-fonts.css look like this: "url('../fonts/" This tells the browser to go one level back from /css to /j51_jasmine and then go to /fonts.

Now the font references work, the font files are uploaded to your Joomla template but the template still shows Google fonts.

Its now time to tell the template what to do: in my example of Jasmine template go to "/templates/j51_jasmine/inc/" and get the "fonts.php".
Open this php file in a texteditor like UltraEdit32 or similar.
At the end of the file you find a loop starting with "foreach {..."

It looks like this:


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


comment out the code with /* ...Code... */.
It should look like this:


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

You can also delete all three lines. Don't forget the last "}".

But we are not done yet.
To bring it to work you should tell the code to load your local-fonts.css file.
I solve it like this:


$app->getDocument()->addStyleSheet('/templates/j51_jasmine/css/local-fonts.css');


Now your template should work with the local font "Open Sans".

If you use more than one font, repeat all for each font you want to use except the last one with the code.

I hope It helps some users to solve the local Google Fonts problem with the newer J51 templates.

Regards
Oliver
  1. more than a month ago
  2. Commercial Templates
  3. # 28
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you for this very detailed solution to this issue. With your permission, I would like to add this to a blog post to ensure as wide an audiance as possible?

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 29
Accepted Answer Pending Moderation
0
Votes
Undo
Hello Ciaran,
if you think this is helpful than pls post it as you want.
Glad I could help a bit :)

Regards
Oliver
  1. more than a month ago
  2. Commercial Templates
  3. # 30
  • Page :
  • 1
  • 2


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok