Guide
What is mixed content, and why does my padlock disappear?
Mixed content is when a secure page loads something over an insecure link, and it can hide the padlock. How to find the cause and fix it step by step.
Mixed content means a page that loads over HTTPS (secure) is also pulling in something, such as an image, script or font, over plain HTTP (not secure). Browsers can block those items or remove the padlock because the page is no longer fully protected. The fix is to make every part of the page load over HTTPS.
Why it happens
You switched on HTTPS, but the pages themselves still contain old addresses starting with http://. For example:
- An image added years ago with a full
http://address - A theme or plugin file that calls an old script
- An embedded video, map or font that was set up with an insecure link
- Hard-coded links in a menu or a widget
It is very common right after moving to HTTPS. See how to switch to HTTPS if you have not finished that step.
What you will see
- The padlock is missing, or the address bar says “Not secure” on some pages and not others
- Images or parts of the page fail to show
- A form that does not submit properly
Browsers deal with the worst cases by blocking the insecure item, which is why parts of a page can go missing. Insecure scripts are blocked most strictly. Why this matters in general is covered in what changed in Chrome.
Step 1: find the culprits
Run the page through our HTTPS checker first to confirm your certificate is sound. Then, on the page that has the problem, use your browser’s developer tools. In Chrome, right-click the page, choose Inspect, then open the Console tab and reload. Mixed-content warnings list the exact address that is loading insecurely. The Network tab, filtered for “http:”, also helps.
If this is unfamiliar, write down the page and the addresses listed and hand them to whoever manages the site.
Step 2: fix each one
- Images in posts and pages: change the address from
http://tohttps://, or remove the domain and use a path starting with/. In WordPress, a search-and-replace tool can update old addresses in the database in one go. Take a backup first (how). - Theme or plugin settings: look for a logo, font or script address with
http://and update it. - Embeds (videos, maps, forms): copy the embed code again from the provider. Current codes use
https://. - Outside resources that do not offer HTTPS: replace them or host a copy yourself. If a service cannot support HTTPS today, it is probably too old to rely on.
- WordPress addresses: make sure both site address settings use
https://.
Step 3: clear caches
If it still shows after fixing, clear your caching plugin or host cache, then your browser cache, or test in a private window. A cache can keep serving the old version.
Step 4: check the whole site
The problem can be on only some pages. Open your key pages (home, contact, services, the newest blog posts, anything with a form) and look for the padlock on each. Search Console can also report issues; see Search Console for beginners.
Prevention
- Use relative links (starting with
/) for your own pages and images where you can. - Copy fresh embed codes whenever you add video, maps or widgets.
- After any theme change or plugin install, check one page for the padlock.
- Keep software current: updating safely.
A worked example
Say your contact page lost its padlock after you moved to HTTPS. You open the Console and see a message that the page loaded an image from http://yourdomain.com/images/team.jpg. You edit the page, re-insert the image from your media library so it uses the secure address, clear the cache, and reload. The padlock returns. If the same warning appears on dozens of pages, the same image or logo is probably in a template, so fixing it once there fixes them all.
Does mixed content affect search?
It can indirectly, because a page that looks broken or untrustworthy drives visitors away. Search engines also prefer a single, consistent HTTPS version of each page. We do not claim any ranking effect, but fixing it is plainly good for visitors.
When to get help
If dozens of images are affected, the problem sits in a theme, or nothing seems to fix it, a developer can fix it quickly with a search-and-replace and a proper redirect. Our guide to “Not secure” warnings covers the related checks.
Filed under Security
Next step
Not sure where your own business stands?
A two-minute check-up shows where you are losing time and customers, and what to fix first.



