Reply To: Generatepress and SSL

Home Forums Support Generatepress and SSL Reply To: Generatepress and SSL

Home Forums Support Generatepress and SSL Reply To: Generatepress and SSL

#167332
Stefan

Hi,

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…