wordpress
2026-11-28
How to Fix WordPress Mixed Content SSL Error (Yellow Padlock Fix)
Quick Answer: WordPress Mixed Content occurs when a page loads over
https:// but still requests images, CSS, or scripts via http://. Update both URLs in Settings → General to https://, run a database search-and-replace, and add FORCE_SSL_ADMIN in wp-config.php.Mixed Content Fixes Compared
| Fix Method | Performance Impact | Permanent? |
|---|---|---|
| Better Search Replace (HTTP → HTTPS) | Zero overhead (fastest) | Yes |
| Really Simple Security Plugin | Minimal | Runtime fix |
.htaccess / CSP upgrade-insecure-requests | Zero PHP overhead | Browser-level |
3-Step Mixed Content Fix
- Update WordPress URLs: Go to WP Admin → Settings → General and change both WordPress Address and Site Address to
https://. - Replace Hardcoded HTTP Links: Use Better Search Replace to replace
http://yourdomain.comwithhttps://yourdomain.comacross all tables (especiallywp_postsandwp_postmeta). - Check CSS & Elementor Cache: If using Elementor or Divi, regenerate CSS files after switching to HTTPS, then test with our SEO & HTTPS Checker.
Frequently Asked Questions
Why does Elementor still load HTTP images after installing SSL? Elementor caches full image URLs in CSS files; go to Elementor → Tools → Replace URL and regenerate CSS.
🛡️ Scan Your Site for Mixed Content & Security Headers
Scan Security Headers →
✅ Post-Installation Verification & SEO Checklist
After applying the steps above, run through this 5-point checklist to prevent browser warnings and protect your Google SEO rankings:
- Verify full CA chain trust and TLS 1.3 support using our Live SSL Checker.
- Scan for Mixed Content HTTP links and check HSTS/CSP headers on Security Headers Checker.
- Enforce a permanent 301 HTTP-to-HTTPS redirect with our HTTPS Redirect Generator.
- Confirm both root and
wwwversions resolve cleanly to one canonical HTTPS URL. - Verify your HTTPS property and
sitemap.xmlinside Google Search Console and Bing Webmaster Tools.