Forums
Home / Plugin: Slider, Gallery, and Carousel by MetaSlider - Responsive WordPress Slideshows / https
(@nickymoers)
7 years, 5 months ago
Hi! Great slider, thank you. I switched my site to https, and now images in slider regusted by http, not htpps. I can’t find settings for this. Please, help me 🙂
(@matchalabs)
Hi there,
Please add the following to your theme’s functions.php file:
function metaslider_protocol_relative_urls($cropped_url, $orig_url) { return str_replace('http://', '//', $cropped_url); } add_filter('metaslider_resized_image_url', 'metaslider_protocol_relative_urls', 10, 2);
https://www.metaslider.com/documentation/metaslider_resized_image_url/
Thanks, Dave