Forum Support

Shape 5
March 29, 2024, 08:01:21 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Loading Template over Https insecure fix  (Read 7615 times)
Dragos01
Jr. Member
**
Offline Offline

Posts: 34



« on: 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:


Code:
<?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:

Code:
<?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
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #1 on: 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.
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
skippy1
Jr. Member
**
Offline Offline

Posts: 1



« Reply #2 on: 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:


Code:
<?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:

Code:
<?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
Logged
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #3 on: 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,
Logged

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.