1. chrishoefliger
  2. Sherlock Holmes
  3. Commercial Templates
  4. Wednesday, 01 June 2022
  5.  Subscribe via email
It has been pointed out to me that there is an error in fonts.php line 38 where it says


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


It appears that Joomla converts & amp ; & to & amp ; & amp ; & and when it gets parsed as XML it gets converted back and therefore not replaced.

You can find the discussion here in this forum
https://forum.joomla.de/thread/16020-jt-aldef-1-0-8-macht-probleme/?postID=108744#post108744
Accepted Answer Pending Moderation
0
Votes
Undo
Hi CHris

Thank you for bringing this to our attention. Could you detail for me the error this issue has caused? Eg. how has it affected your site?

Kind regards
Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciàran,
I have a plugin on my site that downloads the fonts selected in the template from google's site and makes them available locally. A new version of this plugin would not work at all and so I contacted the developer. He looked into a copy of my site and noted that the plugin would not work, because it would try to download a fon-wight that is not available for one of the fonts I use. He then pointed out, that there's an error in the code you provide. Even though finally the error was that the plugin stopped working because of the font-weight issue, he felt obliged to point out the error in your code.That's why I wrote up this as an issue.
kind regards
  1. more than a month ago
  2. Commercial Templates
  3. # 2
  • 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