This topic has 5 replies, 4 voices, and was last updated 9 years, 1 month ago by Wajid Khan.
Tagged: ssl markup google-font
Viewing 6 posts - 1 through 6 (of 6 total)
Mixed Content: The page at 'https://mellowhost.com/' was loaded over HTTPS, but requested an insecure stylesheet 'http://fonts.googleapis.com/css?family=PT+Sans+Narrow&ver=4.4.1'. This content should also be served over HTTPS.
Mixed Content: The page at 'https://mellowhost.com/' was loaded over HTTPS, but requested an insecure stylesheet 'http://fonts.googleapis.com/css?family=Open+Sans+Condensed%3A300&ver=4.4.1'. This content should also be served over HTTPS.
Mixed Content: The page at 'https://mellowhost.com/' was loaded over HTTPS, but requested an insecure stylesheet 'http://fonts.googleapis.com/css?family=Open+Sans:400,800,300,700'. This content should also be served over HTTPS.
there are 103 errors similar to these deleted them for better understanding
Tried changing code in framework/common/atp_googlefont.php
$out .= '<link href="'.$protocol.'fonts.googleapis.com/css?family=' . $fonts .'" rel="stylesheet" type="text/css" />'."\n\n";
to
$out .= '<link href="//fonts.googleapis.com/css?family=' . $fonts .'" rel="stylesheet" type="text/css" />'."\n\n";
according to http://wptavern.com/wordpress-tip-how-to-load-google-fonts-over-ssl-and-non-ssl
it helped me to change only one line of google font in my pages.
<link rel='stylesheet' id='css3_grid_font_yanone-css' href='//fonts.googleapis.com/css?family=Yanone+Kaffeesatz&ver=4.4.1' type='text/css' media='all' />
still http lines are
<link rel='stylesheet' id='css3_vertical_table_font_sans_narrow-css' href='http://fonts.googleapis.com/css?family=PT+Sans+Narrow&ver=4.4.1' type='text/css' media='all' />
<link rel='stylesheet' id='css3_vertical_table_font_sans_condensed-css' href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed%3A300&ver=4.4.1' type='text/css' media='all' />
Please let me how to change them.
You can remove http from atp_googlefont.php, script.js and general.php from shortcode folder. Or if you can provide us WP Logins to your website with URL then we can do it for you. Make sure you set the post as private reply so that only admin can see your wp-logins.
I believe i have done necessary changes to the following files atp_googlefont.php, script.js and general.php. for your understanding i am also uploading a copy of the modified files. ssl errors decreased but still there are 15 more errors related to protocol that means it is coded somewhere else. I am attaching the error log file with this reply named mellowhost.com-1453798966671.txt
Topic is resolved via Skype Communication. But if you want to update this topic please reply here.
hello
ok I did the changes to the following files
wp-content/themes/hostmev2/framework/common/atp_googlefont.php (http to https)
/wp-content/themes/hostmev2/framework/admin/js/script.js (http to https)
/wp-content/themes/hostmev2/framework/shortcode/general.php (http to https)
That solved the problem, I just wish you guys add this to the next update because if not i will be overwriting the changes and I will not remember what i did.
that is why I am writing this just in case.
Contact me via Skype. Our Skype ID: support-aws
Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.