# Mixed content and missing SSL padlock: fix

URL: https://wp24x7.com/fix/mixed-content-ssl-padlock-missing/
Updated: 2026-11-29
Type: page
Audience: WordPress site owners seeing Not secure or a missing padlock

> A missing padlock on an HTTPS WordPress site is almost always mixed content: the page is secure but some images, scripts or styles still load over HTTP. This guide shows how to find the insecure items in the browser console, fix the stored URLs and the two address settings, and force HTTPS in one place only.

## Key facts

- For: WordPress owners whose HTTPS site shows Not secure or no padlock
- Usual cause: old http:// URLs stored in content, settings or page builders
- Tools: browser developer console, Settings then General, WP-CLI search-replace
- Safety: back up first and dry-run any database replace
- Emergency help: engineer reply inside 15 minutes with service credits
- Pricing: Emergency Rescue is pay-only-if-fixed
- Start: call (804) 375-4450 or post a project

A missing padlock on an HTTPS WordPress site almost always means mixed content: some images, scripts or styles still load over HTTP. **Fix the stored URLs to HTTPS, check the two address settings, and force HTTPS in one place only.**

> **Quick answer**
Open the page with the browser console, list each insecure URL, fix them at the source (content, theme settings, plugin), then purge caches. Back up first.

## What does this error mean?

The certificate may be fine. The page itself is secure, but one or more resources inside it are not, so the browser shows "Not secure" or a warning icon. A real certificate problem looks different: a full-page warning.

## Is it mixed content or a certificate problem?

| What you see | Likely cause | First move |
|---|---|---|
| Padlock missing, page loads normally | Mixed content | Read console warnings |
| Full-page browser warning | Expired, wrong or untrusted certificate | Fix the certificate first |
| Warning on `www` only | Certificate misses the `www` name | Reissue to cover both names |
| Redirect loop after forcing HTTPS | HTTPS forced in several places | Keep a single rule |
| Only checkout looks insecure | Insecure script on the payment page | Treat as urgent |

_A certificate that is valid but covered by insecure resources_

## What causes it?

- **Stored `http://` URLs** In posts, widgets, theme options and page-builder data.
- **Address settings** WordPress Address and Site Address still set to `http://`.
- **Hard-coded links** In a theme or plugin template.
- **External resources** Loaded from an insecure source. [Post a project](/post-project)
- **CDN or proxy** Serving some assets over HTTP. [SSL setup and fix](/ssl-setup-and-fix)

## What safe steps should I try?

Back up the files and database first.

1. **Read the console.** Open the page with the developer console and note each mixed content URL.
2. **Check the addresses.** In Settings, then General, both addresses must begin with `https://`. If you cannot save, they may be defined in `wp-config.php`.
3. **Check the certificate.** In the padlock details look at expiry and the names covered, including `www`.
4. **Update stored URLs.** Preview first, then run for real (see below).
5. **Fix theme and plugin settings.** Logo, background images and page-builder assets, then regenerate CSS caches.
6. **Choose one place to force HTTPS.** The host's setting or one redirect rule, not several.
7. **Purge caches** including the CDN, and re-check the console.

### How do I update stored URLs?

### WP-CLI
With SSH access, preview first:

```bash
wp search-replace 'http://example.com' 'https://example.com' --dry-run
```

If the counts look right, run it again without `--dry-run`. WP-CLI handles serialised data correctly.
### Settings and builder
Without SSH, correct the two addresses in Settings, then General. Re-save the logo, background and widget settings, then use your page builder's option to regenerate CSS.
### Plugin stopgap
A rewriting plugin can hide the symptom while you work. Remove it once the stored URLs are fixed, so it is not a permanent dependency.

## How do I sort the console warnings?

| Warning type | Where it hides | Fix |
|---|---|---|
| Image in a post | Post content | Stored-URL fix |
| Logo or background | Theme settings | Re-save the setting |
| Script or style from a plugin | Plugin settings | Update or reconfigure the plugin |
| Third-party embed | Pasted embed code | Use the HTTPS version |
| Builder asset | Generated CSS | Regenerate CSS |

## Worked example: one stubborn image

Imagine a site where the console reports a single insecure item, a hero image, after everything else has been fixed. The theme customiser stores the image URL in its own settings, and a page builder stores a copy in its generated CSS file. The fix is to re-save the image in the theme setting, then regenerate the builder's CSS so the old `http://` link is not served from a cached stylesheet. Mixed content hides in places a content search does not reach.

## What should I check after the fix?

- [ ] Both addresses in Settings, then General, start with `https://`
- [ ] The certificate is valid for the exact hostname, `www` included
- [ ] The console shows no mixed content on the home page, a post, a page and checkout
- [ ] Only one place forces HTTPS
- [ ] Caches and the CDN were purged
- [ ] The sitemap and canonical tags use `https://`
- [ ] The HTTP version redirects to HTTPS once, not through a chain

> **What not to do**
Do not run a database replace without a backup and a dry run. Do not force HTTPS in three places at once. Do not change permissions or delete configuration files to chase a padlock. Stop and call someone if redirects loop, the certificate is invalid or checkout is affected.

## How do we fix it?

Our [SSL setup and fix](/ssl-setup-and-fix) service installs or renews the certificate, corrects stored URLs and sets one clean redirect. If a store is affected, we pair it with the [WooCommerce checkout fix](/woocommerce-checkout-fix). [Emergency support](/wordpress-emergency-support) responds within 15 minutes with service credits, and Emergency Rescue is pay-only-if-fixed.

**Padlock still missing?**
An engineer can find the last insecure URL.
[Post a project](/post-project)
[Call the help desk: (804) 375-4450](tel:+18043754450)

## Frequently asked questions

### What is mixed content?

An HTTPS page that still loads images, scripts or styles over plain HTTP. Browsers may block them or drop the padlock, even though the certificate itself is valid.

### How do I find the insecure items?

Open the browser developer console on the page. Mixed content warnings list each insecure URL, so you can group them into post content, theme settings, plugin assets and third-party embeds and fix each group.

### Can I fix it with a plugin?

Plugins can rewrite URLs on the fly, but fixing the stored URLs is cleaner and faster. Treat a rewriting plugin as a stopgap, not the permanent answer.

### Why do I get too many redirects after forcing HTTPS?

HTTPS is often being forced in more than one place, such as the host, a plugin, .htaccess and a CDN, and the rules loop. Keep one rule and set the CDN to connect to your server over HTTPS.

### Will fixing mixed content affect my search rankings?

It does not by itself raise rankings, but a single clean HTTPS version, with matching canonical tags and sitemap, avoids duplicate and insecure URLs.

### Is a missing padlock a certificate problem?

Not usually. If the certificate is valid, unexpired and covers your exact hostname, the cause is mixed content. A full-page browser warning before the site loads is a certificate problem instead.

### Why does one image still show insecure after I fixed everything?

Themes and page builders often store the old URL in their own settings or in a generated CSS file. Re-save the setting, regenerate the builder's CSS and purge caches, then reload with the console open.

### Should I run a database search and replace?

Only with a backup and a dry run first. WP-CLI search-replace handles serialised data correctly, while a plain SQL replace can corrupt it. Check the counts before running it for real.

### Can mixed content break my checkout?

Yes. Browsers can block insecure scripts, which may stop a payment form or slider loading. If checkout is affected, treat it as urgent and call the help desk.

### Do I need to fix both www and non-www?

Yes. Both versions of the domain must resolve securely and redirect once to your preferred version. A certificate that misses the www name leaves visitors on a warning page.

### How long does it take to fix?

A single stubborn URL can take minutes. A site with page-builder content, a CDN and several redirect layers takes longer to untangle. We diagnose first and tell you what we found before changing anything.
