Title: Mixed content when adding image on HTTPS site
Last modified: April 10, 2020

---

# Mixed content when adding image on HTTPS site

 *  Resolved [cluber22](https://wordpress.org/support/users/cluber22/)
 * (@cluber22)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/mixed-content-when-adding-image-on-https-site/)
 * The logo is not displayed on the site as I am getting mixed content errors in
   the Google Chrome console.
 * Mixed Content: The page at ‘[https://site.com/&#8217](https://site.com/&#8217);
   was loaded over HTTPS, but requested an insecure image ‘[http://site.com/wp-content/uploads/2020/04/logo-01-1536×1536.png&#8217](http://site.com/wp-content/uploads/2020/04/logo-01-1536×1536.png&#8217);.
   This request has been blocked; the content must be served over HTTPS.
 * This is the offending HTML:
 *     ```
       <div id="site-branding" class="site-branding"><a href="https://site.com/" class="custom-logo-link" rel="home"><img width="4167" height="4167" src="https://site.com/wp-content/uploads/2020/04/Logo-01.png" class="custom-logo" alt="lol" srcset="http://site.com/wp-content/uploads/2020/04/Logo-01.png 4167w, http://site.com/wp-content/uploads/2020/04/Logo-01-300x300.png 300w, http://site.com/wp-content/uploads/2020/04/Logo-01-1024x1024.png 1024w, http://site.com/wp-content/uploads/2020/04/Logo-01-150x150.png 150w, http://site.com/wp-content/uploads/2020/04/Logo-01-768x768.png 768w, http://site.com/wp-content/uploads/2020/04/Logo-01-1536x1536.png 1536w, http://site.com/wp-content/uploads/2020/04/Logo-01-2048x2048.png 2048w, http://site.com/wp-content/uploads/2020/04/Logo-01-75x75.png 75w" sizes="(max-width: 4167px) 100vw, 4167px"></a><div id="site-detail">				<h1 id="site-title"> 				<a href="https://site.com/" title="lol" rel="home"> lol </a>
       </h1>  <!-- end .site-title -->
       <div id="site-description"> description </div> <!-- end #site-description -->
   
       </div></div>
       ```
   
 * I guess the fix would be to ensure the srcset= element respects the sites protocol,
   HTTP or HTTPS.
 * Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [cluber22](https://wordpress.org/support/users/cluber22/)
 * (@cluber22)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/mixed-content-when-adding-image-on-https-site/#post-12656191)
 * Ignore me, not a theme issue it was because i wasn’t forcing HTTPS.
 *  Thread Starter [cluber22](https://wordpress.org/support/users/cluber22/)
 * (@cluber22)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/mixed-content-when-adding-image-on-https-site/#post-12656193)
 * Closed

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Mixed content when adding image on HTTPS site’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/cocktail/1.1.8/screenshot.jpg)
 * Cocktail
 * [Support Threads](https://wordpress.org/support/theme/cocktail/)
 * [Active Topics](https://wordpress.org/support/theme/cocktail/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/cocktail/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/cocktail/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [cluber22](https://wordpress.org/support/users/cluber22/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/mixed-content-when-adding-image-on-https-site/#post-12656193)
 * Status: resolved