The link to a font set that I uploaded through the iCon manager is showing up as insecure content on my SSL enabled site. I am already using the WP HTTPS plugin to force the site to SSL. But those links are still set with http.
How can I fix that?
Thanks
Todd
Hey toddgeist!
Please add this on functions.php:
function fix_ssl_upload_url( $url ) {
if ( is_ssl() )
$url = str_replace( 'http://', 'https://', $url );
return $url;
}
add_filter( 'upload_dir', 'fix_ssl_upload_url' );
Best regards,
Ismael
Thank you !!!
Works :-)
Todd