WordPress Mixed Content Error: How to Fix the Not Secure Warning (2026)
A mixed content error means your page loads over HTTPS, but some files on it (images, scripts, stylesheets) still load over plain HTTP. To fix it, make sure both WordPress URLs start with https://, replace the old http:// links in your database, and clear every cache.
Typical symptoms are a missing padlock, a “Not secure” label, or broken images and styles after you install an SSL certificate. This guide shows how to find the exact files that cause it and how to fix them safely, starting with the easiest steps.
What Mixed Content Means
When a secure page asks for a file over HTTP, the browser treats that file as unsafe. Modern browsers often block scripts and styles loaded this way, and they warn about images. The page itself is fine. The problem is the old http:// address still stored somewhere on your site.
Step 1: Find the Insecure Files
Open the page in Chrome, press F12 and open the Console tab, then reload the page. The browser lists every file it called over HTTP, so you know whether the cause is an image in a post, a theme file, or a plugin script.
Step 2: Check Your WordPress URLs
Go to Settings, then General. Both the WordPress Address and the Site Address must start with https://. If they still show http://, change them and save. If the fields are locked, WP_HOME and WP_SITEURL are set in wp-config.php, so edit them there.
Step 3: Fix Old Links in the Database
Images and links inside your posts keep the address they had when you added them. Replace the old HTTP version of your domain with the HTTPS version using a search and replace plugin such as Better Search Replace. Always take a full backup first, and run a dry run before you apply the change.
Step 4: Use a Mixed Content Fixer Plugin
If a few files remain, a fixer plugin can rewrite them on the fly. SSL Insecure Content Fixer and Really Simple SSL both do this. Treat them as a fix for the symptom. The cleaner long term fix is still to correct the links in the database and your theme.
Step 5: Check Your Theme and Plugins
Hard coded http:// links in theme files, widgets, custom CSS or the Customizer will survive a database replace. Search these places for http:// and change them to https://. If a single plugin loads an insecure script, update it or replace it. Our plugin conflict guide shows how to find the plugin.
Step 6: Redirect HTTP to HTTPS
Visitors who open the old HTTP address should land on HTTPS automatically. Most hosts have a force HTTPS switch in their panel. On Apache you can add a rewrite rule to .htaccess. Be careful: a wrong redirect rule can cause a loop, which our too many redirects guide explains.
Step 7: CDN, Proxy and Caches
If you use a CDN or reverse proxy, make sure it passes the HTTPS information to WordPress, otherwise WordPress may keep producing HTTP links. After every change, clear your cache plugin, your CDN cache and your browser cache, then test again in a private window.
Quick Checklist
- Both WordPress URLs start with https://
- Console shows no more mixed content warnings
- Old http:// links replaced in the database
- Theme, widgets and custom CSS checked
- HTTP redirects to HTTPS without a loop
- All caches cleared
Verified Facts and Sources
The steps below follow the hosting and plugin documentation listed here: update the URLs, find insecure files in the browser console, replace hard coded links, and use a fixer plugin or HTTPS redirect where needed. We did not reproduce a mixed content error on a test site while writing this article.
- SSL Insecure Content Fixer (WordPress.org plugin page)
- Hostinger: How to fix mixed content in WordPress
- GoDaddy: Fix mixed content errors in WordPress
Frequently Asked Questions
What is a mixed content error in WordPress?
It is a warning that appears when an HTTPS page loads some files, such as images or scripts, over plain HTTP. Browsers may block those files or remove the padlock.
Why did it start after I installed an SSL certificate?
Your older posts, theme settings and plugins still contain http:// links from before the switch. They need to be changed to https://.
Is a mixed content plugin enough?
A plugin such as SSL Insecure Content Fixer often hides the problem quickly, but fixing the stored links in the database and theme is the cleaner long term solution.
Can mixed content hurt SEO?
It can hurt user trust and may break page layout, and Google prefers secure pages. Fixing it keeps the site safe and the design intact.
Updated December 2, 2026.
More WordPress Error Fixes
- 500 Internal Server Error: Fix the 500 error
- Critical Error on This Website: Fix the critical error message
- White Screen of Death: Fix the blank white page
- Database Connection Error: Fix Error establishing a database connection
- Memory Limit Error: Fix Allowed memory size exhausted
- Update Failed: Fix a failed WordPress update
- 404 After Changing Permalinks: Fix pages showing 404
- Parse and Syntax Error: Fix parse errors from code edits
- Maximum Execution Time Exceeded: Fix timeouts
- Locked Out of WordPress: Reset your admin password
- Headers Already Sent: Fix the headers already sent warning
- Plugin Conflict: Find the plugin causing the problem
- Too Many Redirects: Fix ERR_TOO_MANY_REDIRECTS
- Login page refreshing: fix the wp-admin redirect loop
- Fatal error after PHP update: roll back and fix safely
- WordPress not sending emails: fix contact form and reset mail