google font and ssl certificate issue


Author Message
Roland

Posted: 6/4/2013
Quote message 

Hi. Struggling with something. I have an Artisteer 4 template that has a google font in it. It's really nice. But when a page loads that is https:// I get the browser error "Only secure content displayed" because the link to the google font is "http://" I would like to add some custom code that would make that link https or http depending on the state of the page. BUT the call to the google font is rendered in the "jdoc head" part of Joomla.

Anyone know where I can go to edit that and remove the line for the google font so I can add it manually to the template index.php file? I found the pages that create the array for the head code but can not find where it builds that array from.

Any help greatly appreciated.
 
Roland

Posted: 8/24/2013
Quote message 

I figured this out. Still a mystery where Joomla gets the values for the jdoc head array but I found the file where it is compiled and added code to prevent the google font code from getting written!!

Let me know if you need similar help.
 
RobBekke

Posted: 11/8/2013
Quote message 

Roland,

Can you share the solution ?
I have the same problem

Rob

 
Mike

Posted: 11/8/2013
Quote message 

Cant understand how people find solutions and not share it.
 
Jimmy

Posted: 11/9/2013
Quote message 

Yeah thanks Roland, glad you asked the question then figured it out and didn't mention the solution you found.
 
Debra

Posted: 12/1/2013
Quote message 

http://www.amixa.com/blog/2012/06/06/how-to-use-google-fonts-under-both-ssl-and-non-ssl-without-ssl-insecure-messages/

 
Chris

Posted: 2/25/2018
Quote message 

so simple a solution - thanks Debra for sharing a solution for us!
 
Tobias

Posted: 6/4/2018
Quote message 

manuel Solution is ok, but i i update temnplate i have to replace some text informations. Better it would be able to set http:// or https:// output for scheme infromation. It should be able inside Artisteer ;-)