HI Glen,
Please try adding this to your themes functions.php file
add_filter('metaslider_resized_image_url', 'metaslider_relative_urls', 10, 2);
function metaslider_relative_urls($cropped_url, $orig_url) {
$new_url = str_replace(site_url(), '', $cropped_url);
return $new_url;
}
Regards,
Tom
Hi Tom,
Thanks for your prompt reply, much appreciated 🙂
I tried adding the above code to the functions.php file in my child theme, but no luck 🙁 it’s still loading the http instead of https when in https…
Any other ideas? Sorry for the hassle.
I’m using Twenty Twelve and latest plugin & WP versions .
Hi, please could you check the single quotes haven’t been converted to curly ones when you pasted the code in? Sometimes that seems to happen.
Also maybe try it in the parent theme’s functions.php (I have limited experience with theme stuff but in the past I think I might have had to use the functions.php file from the parent theme – but I could well be wrong!)
Regards,
Tom