How to Fix the Mixed Content Error in WordPress After Adding SSL
In this guide
What the Mixed Content Error WordPress Shows Means
A mixed content error WordPress site owners see after installing an SSL certificate means that a secure page is loading some of its parts over an unencrypted connection. The page itself uses HTTPS, but an image, a script or a stylesheet inside it still uses HTTP, and the browser notices the mismatch.
Browsers treat the two kinds of mixed content differently. Active content, such as scripts, is usually blocked completely, which can break parts of your page. Passive content, such as images, is usually allowed to load, but the browser removes the padlock and warns the visitor that the page is not fully secure.
Either way, the result is bad: your visitors lose the trust signal they look for, and parts of your site may stop working. Fixing mixed content is therefore an essential part of any move to HTTPS, not an optional finishing touch.
How to Find Mixed Content on Your Site
The easiest way to find mixed content is in your browser. Open the affected page, open the browser's developer tools, and look at the console or the security panel. It will list every resource that loaded over an unencrypted connection, with its address, so you know exactly what needs fixing.
Check your most important pages first: the home page, the checkout page if you run a shop, and any page with many images. Old posts are the usual source of trouble, because images added years ago still point to the old address.
There are also online tools that scan your whole site and report mixed content page by page. A full scan is useful after a migration, because it catches the pages you would not think to check by hand.
How to Fix Mixed Content Error WordPress Pages
The simplest fix for a mixed content error WordPress sites suffer from is a search-and-replace operation on your database. A plugin built for this purpose can replace your old unencrypted address with the secure version throughout your posts, pages and settings, and it offers a dry-run mode so you can preview the changes before they are applied.
Always take a complete backup before you run a search and replace. The operation changes many rows in your database at once, and a backup is the only way to undo it quickly if something goes wrong.
If only a few pages are affected, you can fix them by hand instead. Edit the post, find the image or link that uses the old address, and update it to the secure version. Hand-fixing is slower, but it gives you full control over each change.
Fix Mixed Content from Themes, Plugins and Widgets
Sometimes the insecure resource does not live in your posts at all. Your theme, a plugin, or a widget may load a script, a font or an image from an unencrypted address, and no database search will find it, because the address is stored in a file or fetched from an external service.
Check your theme settings and your widgets for any address you entered by hand, such as a logo, a banner image or a tracking script. Update each one to the secure version, and if a service only offers an unencrypted address, look for an alternative that supports secure connections.
If a plugin is the source of the problem, update it first, because the developer may already have fixed it. If the plugin is abandoned and still loads insecure resources, replace it with a maintained alternative rather than working around its flaws.
Prevent Mixed Content from Coming Back
After you fix the current problems, stop new ones from appearing. Always use the secure address when you add images, links or embeds to a post, and check that any new plugin or service you add loads its resources securely.
Consider adding a content security policy that tells browsers to upgrade insecure requests automatically. This safety net catches the occasional resource you miss, though it is not a substitute for fixing the underlying addresses.
Finally, re-check your site after every major change, such as a theme switch or a migration. Mixed content has a habit of returning quietly, and a quick check after each change keeps your padlock where it belongs: visible on every page, on every visit.
Re-check your site after every major change, because mixed content has a habit of returning quietly. A new theme, a new plugin, or a restored backup can all reintroduce old addresses that you fixed months ago. Make the browser security check part of your routine after any change, and run a full scan every few months even when nothing has changed. A padlock that you verify regularly is a padlock you can trust. Keep a short checklist of the pages you checked and the date you checked them, so that the next review starts from a clear record instead of from memory.
Earn
Zohaib Faisal is the founder and editor of EarnDesk. Based in Lahore, Pakistan, he runs the online store Haseeb Collections and works as a freelancer on Fiverr (virtual assistance, AI content writing, AI prompt engineering and digital marketing). He builds websites — Haseeb Collections, EarnDesk and a temporary-email service — writes SEO-focused content, and has hands-on AdSense experience across his sites. He has earned 15+ professional certificates from Google, IBM, Microsoft, HubSpot, Cisco, the Linux Foundation, Unity, Semrush and Harvard (CS50P), and creates the YouTube channel Clips by Zohaib. On EarnDesk he writes practical, honest guides to help beginners earn online — without hype or "get rich quick" promises.