1. SYSOPONLINE
  2. Sherlock Holmes
  3. Commercial Templates
  4. Thursday, 13 October 2022
  5.  Subscribe via email
Hello, we have received a warning letter because of the Google Fonts.

We have already removed the code in the template settings of J51_Maya /http://mastavit.de/templates/j51_maya/inc


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


But still the fonts continue to be reloaded.
Where else is the script for the fonts loaded? It would be good if the script would not always change from template to template or the path would not always change.
Accepted Answer Pending Moderation
0
Votes
Undo
There is a plugin that prevents Google Fonts from being loaded from the Google Server. It installs Google Fonts locally. Feel free to try it. You will find it here:
https://github.com/joomtools/plg_system_jtaldef

And here is a link to a Google Fonts Checker Tool:
https://sicher3.de/google-fonts-checker/
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
How can i complete disable google Fonts in Maya Template. Where can i find the Code?
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
- Goto Site Template Styles > Your_Template > Tab «General» > Typography Styling
- Body font > Scroll to the very top of the list
- Choose one of the fonts in the «Web Safe Fonts» section

Repeat step 2 and 3 for any other font style definition such as «(H1) Category Head Font» and so on
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
That is not the answer!
we have entered websafe fonts everywhere and still https://fonts.googleapis.com/css?family=oswald is reloaded.
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
I am not Ciaran but I suggest looking for the file templates/j51_xxx/inc/font.php
Disabling this section might resolve the issue:


$googlefonts = array_diff($googlefonts, $websafefonts); // remove websafe
$googlefonts = array_keys(array_flip($googlefonts)); // remove duplicates
$font_subset = str_replace(' ', '', $font_subset); // remove spaces
$font_weights = str_replace(' ', '', $font_weights); // remove spaces
foreach ($googlefonts as $v) { // loop
$app->getDocument()->addStyleSheet('//http://fonts.googleapis.com/css?family=' . $v . ':' . $font_weights . '&&subset=' . $font_subset . '&display=swap');
}
  1. more than a month ago
  2. Commercial Templates
  3. # 5
Accepted Answer Pending Moderation
0
Votes
Undo
this file doesnt exist
Attachments (1)
  1. more than a month ago
  2. Commercial Templates
  3. # 6
Accepted Answer Pending Moderation
0
Votes
Undo
wow i found it in the index.php

<meta name="author" content=" Allerseiten - Thomas Grummt">
<meta name="copyright" content="Thomas Grummt" />
<meta name="page-topic" content="Mastavit - Herstellung und Vertrieb von pharmazeutischen Produkten">
<meta name="robots" content="index,follow">
<link rel="apple-touch-icon" href="https://www.mastavit.de/apple-touch-icon.png"/>
<jdoc:include type="head" />
<?php include ("inc/head.php";);?>
<?php include ("inc/scripts.php";);?>
<?php echo $this->params->get('head_custom_code'); ?>
<!--
<link href="https://fonts.googleapis.com/css?family=Oswald"; rel="stylesheet">
-->

</head>
  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.

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