You installed an SSL certificate, your site loads over https, and yet the browser still says Not secure, or the padlock is missing, or an image or script does not load. This is a mixed content problem, and it is one of the most common issues after moving a WordPress site to HTTPS. The good news is that it is usually easy to fix once you know which files are still loading over http.
This guide explains what mixed content means in WordPress and gives you 8 clear steps to find and fix it, from reading the browser console and updating URLs in the database to forcing HTTPS and clearing caches.

What is mixed content?
Mixed content happens when a page is loaded over secure HTTPS but some of its files, such as images, scripts, stylesheets, fonts or embedded frames, are still requested over insecure http. Browsers treat this as a risk, because an attacker could change the insecure file. Browsers may block risky files such as scripts, load others with a warning, and remove the secure padlock, which makes visitors lose trust.
Why does mixed content happen in WordPress?
| Cause | Typical clue | Fix |
|---|---|---|
| Old http URLs in posts and pages | It began after you added SSL | Replace them in the database |
| Site addresses still use http | Settings, General shows http | Change both addresses to https |
| Hard-coded links in the theme | The logo, a font or a script uses http | Edit the theme or ask the developer |
| Plugin or widget with http links | A chat, slider or embed fails | Update or replace the plugin |
| Page builder data | Images in builder pages stay insecure | Use the builder’s URL replace tool |
| External files over http | A third-party script or font | Switch it to https |
| CDN or cache | You fixed it but still see the warning | Clear caches and update CDN settings |
Before you start
- Make sure your SSL certificate works. Open your site with https and check there is no certificate error.
- Take a full backup of your files and database, because you will change URLs in the database.
- Use a staging site if the website is busy.
- Open the browser console. It tells you exactly which files are insecure.
How to fix mixed content in WordPress: 8 steps

Step 1: Find the insecure files
Open the page that shows the warning, press F12 and open the Console tab, then reload the page. Look for lines that start with Mixed Content. Each one names the exact file that still loads over http, so you can see whether it is an image, a script or something else. You can also use a free online mixed content scanner to check several pages.

Step 2: Set both site addresses to https
Go to Settings, General and make sure both the WordPress Address (URL) and the Site Address (URL) start with https and use the same www choice. If you cannot open the dashboard, you can set them in wp-config.php as shown in our guide to fixing too many redirects.
Step 3: Replace old http URLs in the database
Older posts and widgets often contain full http addresses. Replace them with https, using a safe tool. If you have WP-CLI, run a dry run first, then the real command, and skip the guid column:
wp search-replace 'http://yourwebsite.com' 'https://yourwebsite.com' --skip-columns=guid --dry-run
wp search-replace 'http://yourwebsite.com' 'https://yourwebsite.com' --skip-columns=guidReplace the example with your real domain. If you prefer a plugin, use a search and replace plugin that has a dry run option, and always take a backup first.

Step 4: Fix your theme, plugins and page builder
Some links live in theme files, widget settings or builder data, not in posts. Check the theme’s logo, fonts and scripts, and update or replace plugins that still load http files. If you use Elementor, look for the Replace URL tool in the Elementor Tools settings, run it with your old http address and your new https address, and then regenerate the CSS and data. If a page builder stops loading after the change, see our guide to fixing Elementor not loading.
Step 5: Update external files to https
Third-party scripts, fonts, videos and embeds should use https addresses. Edit the code or the plugin setting that loads them. If a service does not support https, replace it with one that does.
Step 6: Force HTTPS with one method
Make sure all http visits are redirected to https, but use only one method, such as your host’s setting, a plugin or a rule in .htaccess. Using several methods together can create redirect loops. If that happens, follow our guide on how to fix too many redirects in WordPress.
Step 7: Use the upgrade-insecure-requests header as a fallback
As a temporary safety net, you can ask browsers to upgrade insecure requests to https automatically. On an Apache server you can add this to .htaccess, then test your site carefully:
<IfModule mod_headers.c>
Header always set Content-Security-Policy "upgrade-insecure-requests"
</IfModule>This only works when the files are actually available over https, and it does not replace fixing the real links. Treat it as a short-term helper, and remove it if it causes problems.
Step 8: Clear all caches and retest
Clear your caching plugin, your host cache, your CDN cache and your browser cache, and regenerate any minified or combined files. Then retest the page in a private window and check the console again. Test your home page, a post, a product page and your contact page.
Mixed content and SEO
HTTPS is a lightweight ranking signal, but the larger effects are on trust and experience. A missing padlock can scare visitors away, blocked scripts can break forms and checkout, and blocked images can hurt your design. Fix mixed content, keep one canonical https version of your site, and update your sitemap and internal links to https. For broader technical health, read our guide on how to improve Core Web Vitals on WordPress.
How to prevent mixed content
- Use https for both WordPress addresses before you publish content.
- Insert media from the Media Library so WordPress uses the right address.
- Choose plugins, themes and external services that support https.
- Run a mixed content check after every migration, theme change or plugin install.
- Keep one redirect method and document it.

When to ask an expert for help
Ask for help if the warning remains after these steps, if a store or login page is affected, or if you are not comfortable changing database URLs. At wpXpart we fix SSL and mixed content problems, migrate sites to https and set up safe redirects. See our WordPress migration service, our maintenance services, or hire a WordPress expert.
Frequently asked questions
What does mixed content mean?
It means an https page is loading some files over insecure http, so the page is not fully secure.
Why is my padlock missing after I installed SSL?
Usually because some files, such as images or scripts, still load over http. Find them in the browser console and update the links.
Is mixed content dangerous?
It can be, because insecure files could be modified in transit, and browsers may block them or warn visitors. Fix it to keep visitors safe and your site trusted.
Will a plugin fix mixed content automatically?
Some plugins rewrite http links on the fly, but fixing the real URLs in the database and files is cleaner and faster.
Can mixed content break my site?
Yes. Blocked scripts can break menus, forms or checkout, and blocked styles or images can damage the design.
Does mixed content affect SEO?
It can hurt trust, user experience and conversions. Fix it and keep one https version of your site for the best results.
Is it safe to run a search and replace?
Yes, if you back up first, run a dry run, skip the guid column and test afterward.
Why do I still see the warning after fixing it?
Cached pages, a CDN, minified files or a hard-coded link in the theme can still contain http addresses. Clear all caches and check the console again.
Related guides
Keep learning with these step-by-step guides from our team.
- How to Fix Too Many Redirects in WordPress: break the redirect loop.
- WordPress Security Checklist: 20 Steps: protect your site from hackers.
- How to Fix Elementor Not Loading: get the editor working again.
Conclusion
To fix mixed content in WordPress, find the insecure files in the console, use https for both site addresses, replace old http URLs in the database, fix your theme, plugins and builder data, force HTTPS with a single method and clear every cache. Done carefully, you will bring back the secure padlock and keep your visitors’ trust.
Need help? Start a project with wpXpart and we will secure your WordPress site.
Need help with your WordPress site?
Tell us about your project and get a clear, written proposal.
Stay tuned with our latest updates
Subscribe for practical WordPress tips and news.






















