Key points
- Mixed content means http:// files requested on an https:// page.
- The browser console lists every resource involved.
- The lasting fix happens in the database, not with a plugin.
After installing an SSL certificate, the page opens over HTTPS, yet the padlock is crossed out or some images and fonts disappear. The browser is blocking resources requested over HTTP: that is “mixed content”.
Find the offending resources
Open developer tools (F12), Console tab. Each “Mixed Content” line shows the exact HTTP URL, so you can tell whether it comes from post content, the theme or a plugin.
Fix URLs in the database
First check that both the Site Address and WordPress Address (Settings → General) start with https://. Old URLs still sit in post content and options. With WP-CLI:
wp search-replace 'http://www.mysite.com' 'https://www.mysite.com' --all-tables --dry-run
wp search-replace 'http://www.mysite.com' 'https://www.mysite.com' --all-tables
WP-CLI handles serialized data, which a raw SQL replace would break. Without command-line access, the Better Search Replace plugin does the same job.
Theme and plugins
If the URL comes from a theme file, look for hard-coded http:// addresses and use functions such as get_template_directory_uri(), which follow the site’s protocol.
Force HTTPS on the server
Add a 301 redirect from HTTP to HTTPS in .htaccess or your host’s settings, then a Strict-Transport-Security header once everything works. A plugin that “fixes” mixed content on every page view adds work to each request: prefer a permanent fix.
FAQ
Does it hurt SEO?
Not directly, but the “Not secure” label scares visitors away and blocked files can break the page.
Are images uploaded before HTTPS affected?
Yes: their full http:// URLs are stored in the content. The database replace fixes them all.
Facing this on your site? We diagnose and fix it without putting your content at risk.



