(FIX) Using Google fonts on secure/mixed content website
Posted: 20 Sep 2014, 23:02
If you are running a secure website with all or some pages using the https: protocol, the Phoca Google web fonts will not be downloaded for pages using the https: protocol (at least not in Firefox - haven't tried other browsers).
Here's a link from mozilla explaining the problem... https://developer.mozilla.org/en-US/doc ... ed_content
The php code should be fixed so as to allow the browser to decide what protocol to use when accessing the Google website.
To fix this, change line 168 of /plugins/system/phocafont/phocafont.php from...
to...
This solves that problem.
Here's a link from mozilla explaining the problem... https://developer.mozilla.org/en-US/doc ... ed_content
The php code should be fixed so as to allow the browser to decide what protocol to use when accessing the Google website.
To fix this, change line 168 of /plugins/system/phocafont/phocafont.php from...
Code: Select all
$cssOutput = ' <link href="http://fonts.googleapis.com/css?family='.str_replace(' ', '+', $fontData->title). $variant . $subset .'"'
Code: Select all
$cssOutput = ' <link href="//fonts.googleapis.com/css?family='.str_replace(' ', '+', $fontData->title). $variant . $subset .'"'