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
- Urlchecker
-
- Commercial Templates
- Monday, 30 April 2018
- Subscribe via email
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)...
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
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
- more than a month ago
- Commercial Templates
- # 1
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
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
- more than a month ago
- Commercial Templates
- # 2
Hi Tanja
Could you try using the full URL to your font files.
So instead of....
Use...
Ciaran
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
- more than a month ago
- Commercial Templates
- # 3
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
according to this problem. Is there a way to host Google Fonts on my own webspace an use it with magnolia?
Thanks,
Tanja
- more than a month ago
- Commercial Templates
- # 5
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
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
- more than a month ago
- Commercial Templates
- # 7
- Page :
- 1
There are no replies made for this post yet.
Be one of the first to reply to this post!
Be one of the first to reply to this post!
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »