You installed an SSL certificate, yet the browser still reads Not secure, or your images, fonts and sliders quietly quit working. That’s WordPress mixed content. The page itself loads over HTTPS, while some of its files still call plain HTTP.
Fixing it normally comes down to a careful database replacement, a page builder rebuild and a full cache purge. Here’s how to track down every insecure URL and clean it up at the root, rather than patching the symptoms on every page load.
What WordPress mixed content is and why browsers care
A secure page promises that everything on it arrived privately and stayed intact along the way. Even one script loaded over HTTP breaks that promise, because someone on the network could alter it.
Browsers sort mixed content into two buckets. According to MDN, browsers upgrade images, audio and video to HTTPS on their own, while blocking other file types outright.
I wanted to watch that happen in a current browser, so I put together a small HTTPS test page and loaded eight types of file over HTTP in Chrome 157 across three runs each.

Scripts, stylesheets, iframes, fonts and fetch requests were blocked every time, even when the exact same file existed over HTTPS. That explains why sliders, forms, maps and custom fonts can suddenly break.
Images, audio and video loaded fine whenever their host supported HTTPS. If the host didn’t, those files failed and simply vanished from the layout.
Visitors notice both problems. An empty hole where a photo belongs looks sloppy, while a blocked script can kill a contact form or checkout entirely.
Find every insecure URL
Put together a list before touching any settings. On most sites, the trouble traces back to just a few sources repeated across dozens of pages.
Work through your site in this order:
- Open a page in Chrome, hit F12 and look at the Console tab. Each mixed content warning prints the exact HTTP address causing it.
- Check several page types, including your homepage, a blog post, a service page, a product, the cart and the contact page.
- Open the page source and search for
http://to spot anything the console missed. Regular outbound links to other websites won’t trigger this warning, so pay attention only to files the page actually loads. - If your site is large, run an online mixed content scanner to crawl deeper into your pages.
Track the page and its insecure file in a quick spreadsheet. When the same file pops up everywhere, it usually sits inside your theme, a widget or your header settings, meaning one fix can wipe out dozens of warnings.
Where the old URLs usually hide
These are the first spots I inspect:
- Images and links tucked inside older posts and pages
- Page builder data, theme options and the Customizer
- Widgets and menus where someone typed full links by hand
- CSS files calling background images via full HTTP addresses
- Third-party embeds, including older video players, booking widgets or badges
Fix WordPress mixed content at the source
Back up your database first. A search and replace touches huge chunks of data at once, and a single typo can wreck multiple pages.

1. Set both site addresses to HTTPS
Head to Settings, General. Both WordPress Address and Site Address need to begin with https://. If those fields look grayed out, they’re locked inside wp-config.php and must be edited there.
Since WordPress 5.7, Site Health can provide a one-click switch whenever your host supports HTTPS. It rewrites your old internal URLs on the fly too, though the old addresses remain inside your database, so don’t skip the next step.
2. Replace old URLs in the database
Swap http://yourdomain.com for https://yourdomain.com throughout your database. Pick a tool built to handle serialized data, since WordPress saves plenty of settings in that format and a basic text replacement can break them.
If you have access to WP-CLI, start with a dry run:
wp search-replace 'http://yourdomain.com' 'https://yourdomain.com' --skip-columns=guid --dry-runWP-CLI previews every change without writing to the database. Once those numbers look clean, run that same command again without --dry-run. If your domain ever used both www and non-www addresses, run the pass for each version.
If you don’t have command line access, Better Search Replace handles the same job right inside your dashboard. It respects serialized data and includes its own dry run toggle.
Never run a raw SQL replace against the options or post meta tables. Doing so can scramble widgets and page builder layouts in ways that are hard to undo.
3. Handle page builders
Elementor includes a dedicated tool under Elementor, Tools, Replace URL. Run that first, then switch to the General tab on that same screen and click Clear Files & Data so its CSS regenerates with your updated addresses.
Those labels come from Elementor 4.4.1. Most other page builders tuck a similar URL tool inside their settings or maintenance screens.
4. Fix theme files and embeds
Scan your child theme and custom CSS for http:// and update whatever turns up. For third-party embeds, grab the fresh HTTPS snippet straight from the provider.
If a provider still doesn’t support HTTPS, swap them out for one that does.
5. Clear every cache
Flush your caching plugin, server cache and CDN. Stale cached pages can keep throwing warnings until they’re rebuilt from scratch.
Force HTTPS everywhere, safely
After cleaning up your content, make sure every visitor lands on the HTTPS version.
Put a permanent 301 redirect from HTTP to HTTPS in place at the server level. Many hosts give you a simple toggle to force HTTPS automatically.
If your site runs through Cloudflare, pick Full (strict) rather than Flexible. Flexible sends requests to your server over HTTP, meaning a server-side redirect to HTTPS can trap visitors in an endless redirect loop.

Wait to enable HSTS until your site has run smoothly on HTTPS for a while. It tells browsers to use HTTPS only for the duration you specify, which becomes painful to reverse if anything breaks.
Look over forms and redirects that push visitors or data to a hardcoded HTTP link, such as an older CRM form action or a thank-you URL pasted into a plugin setting. Those can fail silently and cost you leads.
Plugins that rewrite HTTP links on every page load do work, yet they act like a temporary bandage. They add extra processing to every request while masking the real issue. I’d much rather clean the database once and keep the site fast, which also gives your page speed a lift.
Last, update everything outside WordPress. If you rely on a URL-prefix property inside Google Search Console, add the HTTPS property. Then review your analytics settings, update ad destination URLs and submit your sitemap again.
The short version
Here’s the entire sequence in order:
- Back up your database
- Log mixed content warnings from the console across several page types
- Switch both site addresses to HTTPS
- Run a serialized-safe search and replace, beginning with a dry run
- Run your page builder’s URL tool and rebuild its CSS
- Update hardcoded URLs inside theme files and embeds
- Flush every cache layer and your CDN
- Force HTTPS with a 301 redirect and set Cloudflare to Full (strict)
While you’re tidying up your setup, these guides pair well with this fix: WordPress not sending emails and how to do a WordPress PHP upgrade without breaking your site.
FAQ
Does mixed content hurt SEO?
Google has called HTTPS a very lightweight ranking signal. The real damage usually comes from broken layouts and lost visitor trust, and clearing mixed content protects both.
I fixed everything, so why is the padlock still missing?
A lingering cache is usually the culprit. Clear every cache layer and check the site in a private window. If the padlock still stays away, the browser console will point right to the last remaining HTTP file.
Can I just install an SSL plugin?
A plugin can hide the browser warnings quickly, which works fine as a short-term patch. Over the long haul, update the URLs inside your database so your site isn’t leaning on a plugin to rewrite every page.
Do I need to edit old blog posts one by one?
No. Running a database search and replace updates every post in one shot.
If you’d rather avoid running database replacements on a live site, I can clean up mixed content on a staging copy and push it live once everything checks out. Get a free website review, or check out my WordPress error fix service.




