Mixed content warning: why the padlock breaks and how to fix it
Last reviewed
Mixed content breaks the padlock and the browser warns your visitors.
Mixed content is when an https:// page loads a script, image or stylesheet over insecure http://. The browser flags it, sometimes blocks the resource, and may replace the padlock with a "Not secure" warning. The page can look broken, and the trust signal visitors rely on disappears.
Why mixed content costs you customers
Mixed content makes a secure site look untrustworthy and can stop scripts, including tracking and conversion code, from loading. If your analytics or lead-tracking runs over http on an https page, it may silently fail, so you lose both trust and the data you need to see what is happening.
What usually causes mixed content
- An image, font or script hard-coded with an http:// URL
- An old plugin or embed loading insecure assets
- A migration to HTTPS that missed some references
How to check for mixed content yourself
- Open the page in Chrome and click the icon beside the address. A note saying parts of the page are not secure confirms mixed content.
- Look for visible gaps: an image that will not load, a missing font, a blank map or video embed. Browsers block some insecure items outright.
- Right-click the page, choose "Inspect", and open the Console tab. Mixed content messages list the exact insecure address being requested.
- Check your most important pages one by one, since the insecure file may be on a single old post or campaign page.
How to fix mixed content
- Have your developer change each insecure address from http:// to https:// in the page content, theme files and widgets.
- In a CMS, run a search and replace across the database to update old http:// links to your own domain left over from before the switch.
- Replace any embed or script whose provider does not offer an https version, because browsers will keep blocking it.
- As a safety net, ask your developer about an "upgrade insecure requests" policy, which tells browsers to fetch everything over HTTPS.
How Prsona catches mixed content
Prsona scans the page for resources loaded over insecure HTTP on an HTTPS page and flags real mixed content, so you can restore the padlock and keep your tracking scripts loading.
Prsona looks for mixed content as part of mobile and speed monitoring.
Find the http:// files still loading on your secure pages.
Questions about mixed content
Why does my site say "Not secure" when I have an SSL certificate?
The certificate secures the page itself, but something on the page is still being fetched over plain HTTP. That one insecure item is enough for the browser to downgrade or remove the padlock. It is usually an old image link, a font or a third-party embed added before the site moved to HTTPS.
Do browsers block mixed content automatically?
Partly. Modern browsers block insecure scripts and frames on a secure page, because those could alter the page. For images, audio and video they try to upgrade the request to HTTPS and drop it if that fails. In both cases something on your page may silently go missing for visitors.