Skip to content
Free website migration on every plan, done by our team.Learn more ›
Security

How to fix mixed content warnings

Why your HTTPS site shows "not fully secure" mixed content warnings, how to find the HTTP files causing them and how to fix them for good.

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

  1. Open the page and your browser's developer tools.
  2. The Console lists each mixed content resource.
  3. 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.

Ready when you are

Host it where it performs

NVMe speed, offshore privacy and a written SLA — live in minutes on AuroxHost.