Forum Support

Shape 5
March 28, 2024, 03:44:04 PM *
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: Problems to change from http to https  (Read 1053 times)
kinemore
Jr. Member
**
Offline Offline

Posts: 8



« on: June 27, 2018, 03:17:22 AM »

Hi,

akutell it is necessary to change the website from http to https. Unfortunately I get an error message when I try in the \templates\design_control\index.php (line 33)
"href =" http://fonts.googleapis.com/css?family=<?php echo str_replace ... "
in
"href =" https://fonts.googleapis.com/css?family=<?php echo str_replace ... "
to change. Google will give me the error 400 in this case.
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #1 on: June 27, 2018, 05:41:20 AM »

Hello,

The call should look like this:

"href =" //fonts.googleapis.com/css?family=<?php echo str_replace ... "

Dropping the http: will allow for ssl calls.
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
kinemore
Jr. Member
**
Offline Offline

Posts: 8



« Reply #2 on: June 27, 2018, 06:09:17 AM »

Thanks for the quick help.

Unfortunately that was not the cause of the mistake ...
The call looks like this:

<? 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}?>

According to my browser, however, "only" the following (incomplete) address is called
https://fonts.googleapis.com/css?family=

Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #3 on: June 27, 2018, 02:22:44 PM »

Hello,

Make sure you are running the latest version of Vertex. The only other calls for google fonts are in the framework and the latest version of the framework already has this correction in those files.
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
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.