Short answer: Mixed content happens when an HTTPS page loads images, scripts or styles over plain HTTP. Find the HTTP addresses with your browser's developer tools, change them to HTTPS (or relative paths), update old links in your database and add a header that upgrades insecure requests.
Finding the culprits
- Open the page and your browser's developer tools.
- The Console lists each mixed content resource.
- Note whether it's an image, script or stylesheet, and where it comes from.
Fixing them
- Your own files: change http:// to https:// in theme files, menus and content.
- WordPress database: run a careful search-and-replace from http://yourdomain.com to https://yourdomain.com, after a backup.
- Third-party resources: use their HTTPS address or remove them.
A safety net
Add this header so browsers upgrade remaining requests automatically:
Content-Security-Policy: upgrade-insecure-requests
See security headers.
Then redirect everything
Make sure all HTTP pages redirect to HTTPS. See 301 vs 302 redirects and free SSL certificates.
Frequently asked questions
Why does the padlock disappear on some pages only?
Those pages load something over HTTP, often an old image in the content.
Can mixed content break my site?
Browsers block insecure scripts, which can break features.



