Hello,
we have been using the above template for our homepage for many years. In Germany it is now forbidden for the website to load the GoogleFonts from the American servers. For this reason, the GoogleFonts have to be stored locally on our own server.
In order to do this, I followed a Titleguide in which a code must be removed in point 1:
My problem: where do I find the corresponding fonts.php file for the template?
Thanks for your help!
- Brummsel
-
- Commercial Templates
- Sunday, 20 February 2022
- Subscribe via email
Hello Phillippe,
in case this is an English speaking J51 forum I have send you a message. So we can continue the dialogue in German and on mail basis
I hope thats fine for you.
Regards
Oliver
in case this is an English speaking J51 forum I have send you a message. So we can continue the dialogue in German and on mail basis
I hope thats fine for you.
Regards
Oliver
- more than a month ago
- Commercial Templates
- # 2
Hallo Oliver,
ja, ich brauche deutschsprachige Unterstützung.
Ich habe mir alles genau durchgelesen und, soweit ich es verstanden habe, auch umgesetzt.
Es sieht so aus als würden die Schriften jetzt nicht mehr vom Google-Server geladen werden. Allerdings werden sie auch nicht vom lokalen Server geladen.
Das Menü sollte in der Schrift "Comfortaa" erscheinen. Tut es aber nicht. Es erscheint in "Times".
Auch die Modul-Überschriften erscheinen in "Times" statt in der "Comfortaa".
Ich habe alles nochmal überprüft. Die Schriften befinden sich im Fonts-Ordner innerhalb des "J51_Nocturne"-Ordners.
Die "local-fonts.css" befindet sich im css-Ordner innerhalb des "J51_Nocturne"-Ordners. Der Inhalt der "local-fonts.css" Datei ist ebenfalls richtig.
Und die Änderungen in der "styles.php" habe ich so ausgeführt wie oben beschrieben.
Was ist zu tun damit die richtige Schrift lokal geladen wird ?
Vielen Dank für Deine Hilfe !
Beste Grüße
Philippe
ja, ich brauche deutschsprachige Unterstützung.
Ich habe mir alles genau durchgelesen und, soweit ich es verstanden habe, auch umgesetzt.
Es sieht so aus als würden die Schriften jetzt nicht mehr vom Google-Server geladen werden. Allerdings werden sie auch nicht vom lokalen Server geladen.
Das Menü sollte in der Schrift "Comfortaa" erscheinen. Tut es aber nicht. Es erscheint in "Times".
Auch die Modul-Überschriften erscheinen in "Times" statt in der "Comfortaa".
Ich habe alles nochmal überprüft. Die Schriften befinden sich im Fonts-Ordner innerhalb des "J51_Nocturne"-Ordners.
Die "local-fonts.css" befindet sich im css-Ordner innerhalb des "J51_Nocturne"-Ordners. Der Inhalt der "local-fonts.css" Datei ist ebenfalls richtig.
Und die Änderungen in der "styles.php" habe ich so ausgeführt wie oben beschrieben.
Was ist zu tun damit die richtige Schrift lokal geladen wird ?
Vielen Dank für Deine Hilfe !
Beste Grüße
Philippe
- more than a month ago
- Commercial Templates
- # 3
Hello Franz and Brummsel,
maybe I can give a solution.
All fonts that are used in Enlighten should be handled like the first two steps in this tutorial: https://www.joomla51.com/tutorials/template-customization/localize-web-fonts.
Get the CSS, download the fonts.zip, add the fonts to the templates/j51_enlighten/fonts folder.
Add the local-fonts.css with all the css into the templates/j51_enlighten/css folder.
What comes now I haven't yet tested, because I have no installation with Enlighten but I would try like this:
- go to templates/j51_enlighten/php
- open styles.php (make sure to have a copy of the original file for backup reasons^^)
In the styles.php you will find some areas that look like this:
I would delete the complete line with "http://fonts.googleapis.com/css" in the link reference <link href>
Add ONE line (at line 12 for example) with the reference to your local fonts CSS.
For testing I would add the link reference to the local-fonts.css on line 12 and than delete the first reference to Google at line 41. Then I would check the frontend and see if the $body_fontstyle works.
I hope my description was not too confusing and I hope it helps.
Falls ihr deutschsprachige Unterstützung benötigt, sagt einfach Bescheid
maybe I can give a solution.
All fonts that are used in Enlighten should be handled like the first two steps in this tutorial: https://www.joomla51.com/tutorials/template-customization/localize-web-fonts.
Get the CSS, download the fonts.zip, add the fonts to the templates/j51_enlighten/fonts folder.
Add the local-fonts.css with all the css into the templates/j51_enlighten/css folder.
What comes now I haven't yet tested, because I have no installation with Enlighten but I would try like this:
- go to templates/j51_enlighten/php
- open styles.php (make sure to have a copy of the original file for backup reasons^^)
In the styles.php you will find some areas that look like this:
<?php elseif(($body_fontstyle != "Arial, Helvetica, sans-serif") || ($body_fontstyle != "Courier, monospace") || ($body_fontstyle != "Tahoma, Geneva, sans-serif") || ($body_fontstyle != "Garamond, serif") || ($body_fontstyle != "Georgia, serif") || ($body_fontstyle != "Impact, Charcoal, sans-serif") || ($body_fontstyle != "Lucida Console, Monaco, monospace") || ($body_fontstyle != "Lucida Sans Unicode, Lucida Grande, sans-serif") || ($body_fontstyle != "MS Sans Serif, Geneva, sans-serif") || ($body_fontstyle != "MS Serif, New York, sans-serif") || ($body_fontstyle != "Palatino Linotype, Book Antiqua, Palatino, serif") || ($body_fontstyle != "Times New Roman, Times, serif") || ($body_fontstyle != "Trebuchet MS, Helvetica, sans-serif") || ($body_fontstyle != "Verdana, Geneva, sans-serif")) : ?>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=<?php echo $body_fontstyle ?>" />
<style type="text/css">body, input, button, select, textarea {font-family:<?php echo ($body_fontstyle); ?> }</style>
I would delete the complete line with "http://fonts.googleapis.com/css" in the link reference <link href>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=<?php echo $body_fontstyle ?>" />
Add ONE line (at line 12 for example) with the reference to your local fonts CSS.
<link rel="stylesheet" href="/<?php echo $this->baseurl ?>/templates/<?php echo $this->template?>/css/local-fonts.css" type="text/css" />
For testing I would add the link reference to the local-fonts.css on line 12 and than delete the first reference to Google at line 41. Then I would check the frontend and see if the $body_fontstyle works.
I hope my description was not too confusing and I hope it helps.
Falls ihr deutschsprachige Unterstützung benötigt, sagt einfach Bescheid
- more than a month ago
- Commercial Templates
- # 5
Hi LG Franz
Please send temporary administration access to your Joomla installation to info@joomla51.com and we will examine this issue further. For our reference please paste a link to this post in your email.
Ciaran
Please send temporary administration access to your Joomla installation to info@joomla51.com and we will examine this issue further. For our reference please paste a link to this post in your email.
Ciaran
- more than a month ago
- Commercial Templates
- # 6
Hello
As Enlighten is one of our older templates, the file structure is a little different to how it is described in the article. May I suggest sending temporary administration access to your Joomla installation to info@joomla51.com and we will examine this issue further. For our reference please paste a link to this post in your email.
Ciaran
As Enlighten is one of our older templates, the file structure is a little different to how it is described in the article. May I suggest sending temporary administration access to your Joomla installation to info@joomla51.com and we will examine this issue further. For our reference please paste a link to this post in your email.
Ciaran
- more than a month ago
- Commercial Templates
- # 8
- 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 »