Shape 5

General Category => Suggestions => : Dragos01 August 27, 2017, 05:42:18 AM



: Loading Template over Https insecure fix
: Dragos01 August 27, 2017, 05:42:18 AM
Hi,

If you have a SSL certificate the site isnt fully secure due to the Google Fonts wich loads over http instead of https... It says insecure and blocked content and you get a red cross. Its a global issue over all the templates.

There is an easy fix:

Find the templates index.php

Change this line:


:
<?php if(($s5_fonts_highlight != "Arial") && ($s5_fonts_highlight != "Helvetica") && ($s5_fonts_highlight != "Sans-Serif")) { ?>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=<?php echo str_replace(" ","%20",$s5_fonts_highlight); if ($s5_fonts_highlight_style != "") { echo ":".$s5_fonts_highlight_style; } ?>" />
<?php ?>

to:

:
<?php if(($s5_fonts_highlight != "Arial") && ($s5_fonts_highlight != "Helvetica") && ($s5_fonts_highlight != "Sans-Serif")) { ?>
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=<?php echo str_replace(" ","%20",$s5_fonts_highlight); if ($s5_fonts_highlight_style != "") { echo ":".$s5_fonts_highlight_style; } ?>" />
<?php ?>

Now your site with or without SSL is 100% secure!

Can the developers add this to all the Siteshapers?

Gr. Dragos


: Re: Loading Template over Https insecure fix
: mikek August 28, 2017, 07:24:16 AM
Hello,

All of our most recent templates, probably from the last two years, already have this fix included.


: Re: Loading Template over Https insecure fix
: skippy1 December 28, 2017, 07:05:03 PM
Hi, I have tried this fix for the Campus Life template and it is still showing insecure content on all browsers. Any tips on how to fix thos would be appreciated.

Hi,

If you have a SSL certificate the site isnt fully secure due to the Google Fonts wich loads over http instead of https... It says insecure and blocked content and you get a red cross. Its a global issue over all the templates.

There is an easy fix:

Find the templates index.php

Change this line:


:
<?php if(($s5_fonts_highlight != "Arial") && ($s5_fonts_highlight != "Helvetica") && ($s5_fonts_highlight != "Sans-Serif")) { ?>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=<?php echo str_replace(" ","%20",$s5_fonts_highlight); if ($s5_fonts_highlight_style != "") { echo ":".$s5_fonts_highlight_style; } ?>" />
<?php ?>

to:

:
<?php if(($s5_fonts_highlight != "Arial") && ($s5_fonts_highlight != "Helvetica") && ($s5_fonts_highlight != "Sans-Serif")) { ?>
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=<?php echo str_replace(" ","%20",$s5_fonts_highlight); if ($s5_fonts_highlight_style != "") { echo ":".$s5_fonts_highlight_style; } ?>" />
<?php ?>

Now your site with or without SSL is 100% secure!

Can the developers add this to all the Siteshapers?

Gr. Dragos


: Re: Loading Template over Https insecure fix
: jonahh December 29, 2017, 12:06:48 PM
Hello,

Please grab a fresh download of Campus Life and overwrite your index.php file or reinstall the template and this will fix it. I have just noticed the download for this wasn't updated.

Thanks,