Skip to content
Cloud docs

Fix mixed content warnings

The padlock is missing because something on the page still loads over HTTP. Here is how to find it.

Updated 20 September 20261 min readIntermediate

Mixed content means the page came over HTTPS but an image, script or stylesheet on it was requested over HTTP. Browsers block the risky ones and drop the padlock on the rest.

Find the culprit

  1. Open the browser console

    The warning names the exact URL that was loaded insecurely.

  2. Decide where it comes from

    Your own content, a theme or plugin, or a third-party embed.

  3. Fix content in the database

    Old posts often contain absolute http:// image URLs.

wp-cli
wp search-replace 'http://example.com' 'https://example.com' --dry-run
wp search-replace 'http://example.com' 'https://example.com' --skip-columns=guid
Why skip guid

The guid column is an identifier, not a link. Rewriting it makes feed readers treat every old post as new.

Theme and plugin code

Hard-coded http:// in a template is a bug in that theme or plugin. Report it to the author, and in the meantime use a protocol-relative or HTTPS URL in a child theme.

Third-party embeds

If an external service only serves HTTP, there is no safe fix. Ask them for an HTTPS endpoint, or remove the embed. Do not weaken your own site to accommodate it.

Was this article helpful?

Related articles