- This topic has 7 replies, 2 voices, and was last updated 8 years, 2 months ago by Tom.
-
AuthorPosts
-
December 10, 2015 at 12:23 am #159084Stefan
Hi,
after installing a SSL certificate I have problems with a “insecure content” warning. I could already solve most of the problems after reading https://wordpress.org/support/topic/gp-premium-and-ssl and https://generatepress.com/forums/topic/images-missing-when-page-uses-ssl/
But I couldn’t find any possibility in the backend to change the logo of my site into something other than http…
Is there a way to fix this?Best regards.
December 10, 2015 at 12:24 am #159085TomLead DeveloperLead DeveloperHi there,
You may just have to re-upload your logo to allow WordPress to set it as https instead of http.
Let me know if that helps or not 🙂
December 10, 2015 at 6:00 am #159139StefanThat was quick 🙂
I don’t know what was exactly going wrong, because I tried already some days ago and checked for results every day. I have WP Super Cache installed and cleared the cache several times already. Now I wanted to upload the image again, as you suggested, and noticed that the logo is suddenly delivered by https.
Seems like it was a cache problem.Thank you very much for your help.
December 10, 2015 at 10:19 am #159196TomLead DeveloperLead DeveloperAh, cache can be tricky!
Glad it’s working 🙂
January 22, 2016 at 4:51 am #167332StefanHi,
I’m not really sure what happened that day when I said that the problem was solved. The next day it wasn’t working any more. I waited some days to be sure it is not a cache-problem. Maybe I didn’t look close enough and there was still an error…
A month later I decided to look after the problem again. I found a solution for the problem by inserting
if ( is_ssl() ){ $generate_settings['logo'] = str_replace( 'http://', 'https://', $generate_settings['logo'] ); }
right behind the comment //Site logo in line 555 of the file template-tags.php
Because I’m not good in php I don’t know if this is a good solution – but it works.
But I realized that there are other pictures deliveres by http instead of https: the wp-post-image has a tag src where the image is delivered by https – it also has a tag scrset wher the image is delivered by http.
I searched a while where the code for wp-post-image is generated, but I found nothing. So I have no idea to fix the problem…
January 22, 2016 at 1:37 pm #167439TomLead DeveloperLead DeveloperIf the URLs in “Settings > General” are set to https, WordPress should change all of the post images (wp-post-image) to https automatically.
This plugin may be worth trying as well: https://wordpress.org/plugins/ssl-insecure-content-fixer/
January 25, 2016 at 8:01 am #167929StefanIf the URLs in “Settings > General” are set to https, WordPress should change all of the post images (wp-post-image) to https automatically.
Perfect. That solved the problem 🙂
Thank you very much!January 25, 2016 at 10:50 am #167971TomLead DeveloperLead DeveloperYou’re very welcome 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.