1. vtom007
  2. Commercial Templates
  3. Wednesday, 24 August 2022
  4.  Subscribe via email
Hi
I use many Joomla51 templates.
Now there is a problem in Austria that the Google fonts mean a violation of data protection.
How can I remove / hide these fonts in the templates with as little effort as possible.

It is not enough to deselect this in the settings, the entry googlefonts must no longer be visible in the source text.

Thanks
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

Is the following article useful to you regarding this topic?.. https://joomla51.com/tutorials/template-customization/localize-web-fonts

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Hallo vtom007,
wenn Du Hilfe dabei benötigst, sag gern Bescheid.
Ich habe den Artikel verbrochen, den Ciaran verlinkt hat, also helf ich da gerne :)
Gruß
Oliver
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Hallo Oliver

gibt es keine einfache Möglichkeit die Fonts auf lokal umzuleiten ?
Da ich doch sehr viele Joomla51 Templates im Einsatz hab ist das echt mühsam da immer erst zu schauen welche Fonts, downloaden und dann im Code umbiegen.

Schade das Joomla51 hier nix fertiges hat
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Hallo Vtom,

ja, ich habe das gleiche Problem. Aber ich baue das bei jedem Projekt am Ende gleich um, müßte ich jetzt alle auf einmal machen, wäre ich locker drei Tage beschäftigt ;) Ich wüßte keine einfachere Variante, bin aber für Vorschläge offen ;)

Yes it would be nice if J51 would add a variable to disable google fonts and set a self-defined kind of "local-fonts.css".
The problem is, after every template update you have to set it again. Not all steps but the fonts.php.
So a variable for the fonts.php would be nice.

Something like:

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

ok, template name should be set ;)

Something like this would prevent us from changing the fonts.php after every template update, but not from downloading the font files and place them in the right directory.

Another possibility is that you use an extension like https://extensions.joomla.org/extension/jmg-disable-google-font/
But than you have only disabled all google fonts code lines, you don't have them localized :(
In this case I would use websafe fonts like Arial, Tahoma or Times..... instead of paying for an extension like this ;)

Gruß
Oliver
  1. more than a month ago
  2. Commercial Templates
  3. # 4
  • Page :
  • 1


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