How to fix mixed content warnings on your website
A mixed content warning means a secure (HTTPS) page is loading something, such as an image or script, over insecure HTTP. Find each http:// address your page loads, change it to https://, and the warning goes away.
A mixed content warning appears when a page delivered over HTTPS pulls in a resource (an image, script, stylesheet, font, video or embed) over plain HTTP. The page itself is secure, but part of it is not, so browsers may remove the padlock, show a "Not secure" label or quietly block the insecure item. The cure is to change every http:// address your pages load to https://, then check that nothing is left.
What people see
The signs depend on the browser and on what is being loaded:
- The padlock is missing, or the address bar says "Not secure" even though the address starts with
https://. - Images, fonts or videos are missing or broken.
- A menu, slider, chat widget, map or form stops working because its script was blocked.
- The browser console lists messages that start with "Mixed Content".
There are two kinds. Passive mixed content (images, audio, video) is less dangerous, and many modern browsers try to upgrade it to HTTPS automatically or block it if that fails. Active mixed content (scripts, stylesheets, iframes) is more dangerous and browsers generally block it. Behavior varies between browsers and versions, so a page can look fine for you and broken for someone else.
Why it matters
The main cost is trust and function. Visitors who see "Not secure" on a contact or checkout page hesitate, and a blocked script can quietly break a payment button, booking form or analytics tag. That means lost enquiries and sales you may never notice.
There is a real security side too. Anything loaded over HTTP can be changed by someone on the same network, and if that something is a script, it can alter the whole page. Google does treat HTTPS as a ranking signal, but the bigger effect on search is usually indirect: broken pages and visitors who leave.
How to check if your site has it (free)
- Open a page in Chrome, Edge or Firefox and look at the padlock or site information icon in the address bar. A warning here is the first hint.
- Open the developer tools (press
F12, or right click and choose Inspect), go to the Console tab and reload the page. Mixed content messages name the exact file that is loading over HTTP. - View the page source (
Ctrl+UorCmd+Option+U) and search forhttp://. Ignore ordinary links to other sites (<a href=...>), which do not cause warnings. Look forsrc=, stylesheet<link href=...>andurl(http://...)inside CSS. - Test more than the home page. Check a blog post, a product page, the contact page and the checkout. Old content is often where the problem hides.
The OpenVAS security scan in week 2 of SiteMonday also looks for this kind of issue as part of its report, but the free checks above are enough to find and fix it yourself.
How to fix it in general
First make sure your HTTPS itself is healthy. If the certificate is expired or wrong, fix that before anything else (see SSL certificate expired).
Then find where each insecure address comes from. These are the usual sources:
| Source | Typical cause | Fix |
|---|---|---|
| Page or post content | Images added back when the site used HTTP | Edit the content, or run a search and replace on the database |
| Theme or template files | Hard coded http:// in the header, footer or CSS | Edit the file or theme setting |
| Plugins and widgets | Old embed codes, chat or form tools | Update, reconfigure or replace them |
| Third party embeds | Old copied code for maps, videos, fonts | Copy fresh embed code, which normally uses https:// |
| Site address setting | Site URL still saved as http:// | Change it to https:// |
In each case replace http://example.com/image.jpg with https://example.com/image.jpg. If a third party service does not offer HTTPS at all, the honest answer is to stop using it or host the file yourself.
Also make sure visitors who type the plain http:// version are redirected to https://. Your host or CDN usually has a "force HTTPS" option.
A server header called Content-Security-Policy: upgrade-insecure-requests can ask browsers to upgrade insecure requests automatically. It is a useful safety net, but treat it as a backup, not the fix, because the bad addresses are still in your site.
Fixing it on common platforms
Menu names change between versions and themes, so look for the closest match.
- WordPress: In Settings, General, check that both WordPress Address and Site Address start with
https://. Then back up the site and replace oldhttp://addresses in the database. WP-CLI can do this withwp search-replace 'http://example.com' 'https://example.com' --dry-run(remove--dry-runto apply), and the Better Search Replace plugin does the same from the dashboard. Clear any caching plugin afterwards. See the WordPress guide for more. - WooCommerce: the same steps as WordPress, plus test the cart and checkout pages, where payment scripts matter most.
- Elementor: after changing the site address, look under Elementor, Tools for a Replace URL option and for regenerating CSS and data, since Elementor stores its own copies of styles.
- Shopify: Shopify serves your store over HTTPS, so the culprits are usually hard coded
http://links in theme code (Online Store, Themes, Edit code) or in older pages and blog posts. - Wix and Squarespace: these also serve HTTPS themselves. Check embedded HTML blocks, custom code or code injection areas, and images linked from other sites.
- Webflow: check that SSL is enabled in your hosting settings, then look in custom code and embed elements for
http://addresses.
How to confirm the fix worked
- Clear your site cache, plugin cache and any CDN cache.
- Reload the page with a hard refresh (
Ctrl+Shift+RorCmd+Shift+R). - Open the console again. There should be no "Mixed Content" messages.
- Check the padlock, then repeat on your other page types, especially checkout and forms.
- Try a private window or another device, so you are not looking at a cached copy.
How to stop it coming back
- When adding images or embeds, always use
https://addresses. Copy fresh embed code instead of old snippets. - After installing or changing a plugin, theme or tracking tag, reload a few pages with the console open.
- Once the whole site loads cleanly over HTTPS, consider HSTS, which tells browsers to always use HTTPS for your domain. Only do this after everything works, and see HSTS max age too short for what a sensible setting looks like.
- Recheck every so often, because new content from editors or marketing tools is the usual way the problem returns.
SiteMonday finds and explains problems like this one; making the changes is up to the site owner or their developer.
Step by step for your platform
- Mixed content warnings on WordPress
- Mixed content warnings on WooCommerce
- Mixed content warnings on Shopify
- Mixed content warnings on Wix
- Mixed content warnings on Squarespace
- Mixed content warnings on Webflow
- Mixed content warnings on Elementor
Questions
Is a mixed content warning dangerous?
It can be. Insecure images are a lesser risk, but an insecure script can be altered by anyone on the network and affect the whole page. It also makes visitors trust your site less.
Why does my site show Not secure when I have an SSL certificate?
The certificate only secures the page itself. If any image, script or stylesheet still loads over `http://`, the browser can flag the page as not fully secure.
Will mixed content hurt my Google rankings?
Google uses HTTPS as a ranking signal, but the larger risk is broken pages and visitors leaving. Fixing it is worth doing for trust and function either way.
Can I fix mixed content without a developer?
Often yes. On hosted platforms you edit the offending embed, image or code block, and on WordPress a search and replace after a backup usually works. A developer helps if the addresses are hard coded deep in a theme.
Is upgrade-insecure-requests enough?
It is a helpful safety net, but it does not remove the bad addresses, and it will not help if a third party does not support HTTPS. Fix the source addresses as well.
Why can I not find the insecure item on my page?
It may only appear on certain pages, load from a script, or sit in CSS or a cached copy. Check the browser console, which names the exact file, and clear all caches before testing again.