1. Brummsel
  2. Commercial Templates
  3. Sunday, 20 February 2022
  4.  Subscribe via email
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! :)
Accepted Answer Pending Moderation
0
Votes
Undo
Has already been done.:) :)
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
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 :D
I hope thats fine for you.
Regards
Oliver
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
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
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you Oliver for the detailed description :) :)

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
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:

<?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 :)
  1. more than a month ago
  2. Commercial Templates
  3. # 5
Accepted Answer Pending Moderation
0
Votes
Undo
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
  1. more than a month ago
  2. Commercial Templates
  3. # 6
Accepted Answer Pending Moderation
0
Votes
Undo
I have the same problem, can you help me too?

LG Franz
  1. more than a month ago
  2. Commercial Templates
  3. # 7
Accepted Answer Pending Moderation
0
Votes
Undo
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
  1. more than a month ago
  2. Commercial Templates
  3. # 8
  • 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.

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