Support Forums

Support Online : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

Load Google fonts using https

Featured Lock Resolved Issue
At present any Google fonts loaded via the template are loaded using http which means that on https enabled sites you get the mixed content warning in Chrome.

Is it possible for you to switch to loading Google Fonts via https instead?

6 Answers

Paul Frankowski - Staff

More than a month ago #Permalink
Hi,
we use :
<link href=" //fonts.googleapis.com/(...) rel="stylesheet" type="text/css" />

none word about http !
---
but sure, we have to update this section of code according to new rules.

Paul Frankowski - Staff

More than a month ago #Permalink
You can do changes here:
plugins\system\core\helix3.php
and
plugins\system\assets\js\webfont.js

--
paths taken from helix3 package

Simon Logan

More than a month ago #Permalink
Hi Paul

I'm actually not sure now if it was the Helix template loading them as I disabled them from the Template Style config but that line was still showing up. Could have been caching, I suppose.

In the end I just disabled the Typo settings in the template style and adding the call to the fonts over https myself in the custom.css file but it's useful to know which files i should edit, thanks.

Paul Frankowski - Staff

More than a month ago #Permalink
I added info 2 files where path for Google Fonts are keep. (look above)
---
Yes, you have to :
1) Disable all google fonts switchers
2) Clear CMS cache as well
Hi,
We have a problem where the fonts aren't showing up as we set them in SP PB (v3.03) with Helix3 (v2.4).
Finally I had to change line 954 from file plugins\system\core\helix3.php :
$doc->addStylesheet('//fonts.googleapis.com/css?family=' . $output);
to :
$doc->addStylesheet('https://fonts.googleapis.com/css?family=' . $output);
Ofcourse, when updating the template this will be overwritten...
Is there any solution ?
Kind regards,
Kurt

Paul Frankowski - Staff

4 days ago #Permalink
Thanks Kurt, I will ask our developer (who takes care of Helix3) , okay.


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Leaderboard (30 days)

Paul Frankowski

Paul Frankowski

Total Accepted Answers: 142
Toufiq

Toufiq

Total Accepted Answers: 48
Shibbir

Shibbir

Total Accepted Answers: 25
Pavel

Pavel

Total Accepted Answers: 4
Rifat Wahid Alif

Rifat Wahid Alif

Total Accepted Answers: 3

100+

Templates

200,000+

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam