How to Fix Mixed Content Warnings on Shopify & WooCommerce

errorThe Problem

Your HTTPS page is loading some resources (images, scripts, stylesheets) over insecure HTTP. This triggers a 'mixed content' warning in browsers, removes the padlock icon, and can cause some resources to be blocked entirely.

trending_upWhy It Matters for SEO

Mixed content breaks customer trust — no padlock icon means many shoppers will abandon their cart. Google also uses HTTPS as a ranking signal, and mixed content undermines your SSL certificate. Some browsers actively block mixed content, which can break your page layout or functionality.

buildHow to Fix It

  1. 1

    Shopify handles SSL automatically, but mixed content usually comes from theme code or apps.

  2. 2

    Open your browser DevTools (F12) → Console tab. Look for 'Mixed Content' warnings to identify the specific resources.

  3. 3

    Go to Online Store → Themes → Edit Code.

  4. 4

    Search for 'http://' across your theme files. Replace any http:// URLs with https:// or use protocol-relative //.

  5. 5

    Check any hardcoded image URLs in product descriptions, blog posts, and pages.

  6. 6

    Review installed apps — some inject HTTP resources. Contact the app developer if an app causes it.

folderVarious theme files — search for http://
<!-- Bad: hardcoded HTTP -->
<img src="http://cdn.example.com/image.jpg">
<script src="http://cdn.example.com/script.js"></script>

<!-- Good: use HTTPS or protocol-relative URLs -->
<img src="https://cdn.example.com/image.jpg">
<script src="//cdn.example.com/script.js"></script>

<!-- Best for Shopify: use asset_url filter -->
{{ "image.jpg" | asset_url | img_tag }}
menu_bookRead Google's official documentationopen_in_new

Related Fix Guides

Want to check if YOUR store has this issue?

Scan your site for free — get copy-paste fixes in 60 seconds.

searchScan Now — It's Free