HTTPS mixed content with custom logo

ForumCategory: TechnicalHTTPS mixed content with custom logo
cwjordan asked 1 week ago

If I have a custom logo set in the header it loads over http when loading the page over https, so the lock image won’t display by the url. The header.php file does:
<?php if( $logo = get_theme_mod('uuatheme_logo_upload') ) : ?>
but $logo has “http://&#8221; in it so it will always load over http. One workaround is to modify header.php to add the following below the line above:
<?php if (is_ssl()) {
$logo = str_replace('http://', 'https://', $logo
);
} ?>

Could you please fix this in the next version of this theme?

Christopher Staff replied 2 days ago

Thanks!