1. Urlchecker
  2. Commercial Templates
  3. Monday, 30 April 2018
  4.  Subscribe via email
Hallo Ciarán,

i use the LONDON template and i want to disable Google fonts. I choose a websafe font and the google font disappears, but the
link to Google font SUBSET can't disable .... Its still a google link in source code What can i do ?

I have to disable all Google font and google links of my Website, for the new General Data Protection Regulation of EU ....
I think there are many other people here with that Problems ?!?!

The new General Data Protection Regulation (from 25. May 2018) not allows any (google) links out from EU ..

What means this about your templates ... ? only google fonts ? what about awesome icons ?

greeting from Germany

Urlchecker
Accepted Answer Pending Moderation
0
Votes
Undo
Thanks Ciaran,

that worked!!!

Best regards
Tanja
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Tanja

Could you try using the full URL to your font files.

So instead of....

@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 400;
src: url('../templates/j51_magnolia/fonts/lato-v14-latin-regular.eot'); /* IE9 Compat Modes */
src: local('Lato Regular'), local('Lato-Regular'),
url('../templates/j51_magnolia/fonts/lato-v14-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../templates/j51_magnolia/fonts/lato-v14-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('../templates/j51_magnolia/fonts/lato-v14-latin-regular.woff') format('woff'), /* Modern Browsers */
url('../templates/j51_magnolia/fonts/lato-v14-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('../templates/j51_magnolia/fonts/lato-v14-latin-regular.svg#Lato') format('svg'); /* Legacy iOS */
}


Use...

@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 400;
src: url('../templates/j51_magnolia/fonts/lato-v14-latin-regular.eot'); /* IE9 Compat Modes */
src: local('Lato Regular'), local('Lato-Regular'),
url('https://www.tierheilpraktik-moeller.de/templates/j51_magnolia/fonts/lato-v14-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('https://www.tierheilpraktik-moeller.de/templates/j51_magnolia/fonts/lato-v14-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('https://www.tierheilpraktik-moeller.de/templates/j51_magnolia/fonts/lato-v14-latin-regular.woff') format('woff'), /* Modern Browsers */
url('https://www.tierheilpraktik-moeller.de/templates/j51_magnolia/fonts/lato-v14-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('https://www.tierheilpraktik-moeller.de/templates/j51_magnolia/fonts/lato-v14-latin-regular.svg#Lato') format('svg'); /* Legacy iOS */
}


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

thank you! This works fine and was very easy. I have only one Problem. The Fonts I hosted on my server are loaded on every site except the Artikel Full view. I can't find out why. I have also loaded the fonts in the css of the standard template stile.
I hope I do not have to create a invisible menue-link for each article to fix the problem. Do you have any idea?

Correkt Fonts: http://www.tierheilpraktik-moeller.de
Not loading Poppins and Lato: https://www.tierheilpraktik-moeller.de/blog/ernaehrung-rezepte/129-artgerechte-ernaehrung

Best regards
Tanja
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you, I will try that later!
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

You can then use a tool like https://google-webfonts-helper.herokuapp.com/fonts to obtain a local copy of your Google font along with the CSS needed to load it. CSS can be added to the Custom CSS field of your template settings.

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

according to this problem. Is there a way to host Google Fonts on my own webspace an use it with magnolia?

Thanks,
Tanja
  1. more than a month ago
  2. Commercial Templates
  3. # 6
Accepted Answer Pending Moderation
1
Votes
Undo
Hello

To disable all Google fonts within your template you can remove the following from your templates head.php (../templates/j51_london/inc/head.php)...

foreach ($googlefonts as $v) { // loop
echo '<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family='.$v.':400,700,900&subset='.$font_subset.'" /> ';
}


Admittedly there is still some confusion wither Google fonts go against GDPR (eg. https://github.com/google/fonts/issues/1495). We are currently waiting on an official statement from Google on the subject.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 7
  • Page :
  • 1


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.