Title: Images loaded over http for secure/https site
Last modified: September 1, 2016

---

# Images loaded over http for secure/https site

 *  Resolved [rwijngaa](https://wordpress.org/support/users/rwijngaa/)
 * (@rwijngaa)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/images-loaded-over-http-for-securehttps-site/)
 * The generated img tags is stuck on http even when you have a https site!
    In 
   console you see “… was loaded over HTTPS, but requested an insecure image …..
   This content should also be served over HTTPS.”
 * [https://wordpress.org/plugins/ml-slider/](https://wordpress.org/plugins/ml-slider/)

Viewing 1 replies (of 1 total)

 *  [matchalabs](https://wordpress.org/support/users/matchalabs/)
 * (@matchalabs)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/images-loaded-over-http-for-securehttps-site/#post-7550311)
 * Hi there,
 * Please try adding this code 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);
       ```
   
 * More information here:
    [https://www.metaslider.com/documentation/metaslider_resized_image_url/](https://www.metaslider.com/documentation/metaslider_resized_image_url/)
 * Thanks,
    Dave

Viewing 1 replies (of 1 total)

The topic ‘Images loaded over http for secure/https site’ is closed to new replies.

 * ![](https://ps.w.org/ml-slider/assets/icon.svg?rev=2771717)
 * [Slider, Gallery, and Carousel by MetaSlider - Image Slider, Video Slider](https://wordpress.org/plugins/ml-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ml-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ml-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/ml-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ml-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ml-slider/reviews/)

## Tags

 * [https. SSL](https://wordpress.org/support/topic-tag/https-ssl/)

 * 1 reply
 * 2 participants
 * Last reply from: [matchalabs](https://wordpress.org/support/users/matchalabs/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/images-loaded-over-http-for-securehttps-site/#post-7550311)
 * Status: resolved