Why is my secure website showing mixed content warnings?
Summary
This guide helps you troubleshoot and resolve: Why is my secure website showing mixed content warnings?. Follow the steps below to fix the issue.
Common Causes
Mixed content warnings occur when a website loads over a secure HTTPS connection but pulls certain resources—such as images, scripts, stylesheets, or fonts—over an insecure HTTP connection. Even with a valid SSL certificate installed, browsers flag these insecure elements to protect visitors, often displaying a “Not Secure” indicator or blocking the content entirely. This undermines visitor trust and can negatively impact your site’s search engine optimisation.
Quick Fix Steps
- Open your website in Google Chrome or Microsoft Edge.
- Press
F12to open Developer Tools. - Click the Console tab.
- Look for messages marked
Mixed Contentthat list insecure HTTP URLs. - Update those resource references to use HTTPS.
- Clear your browser cache and reload the page to verify the warning is gone.
Detailed Instructions
Identify insecure resources
Modern browsers block or flag mixed content automatically. To find exactly which files are causing the warning:
- Visit your website using
https://. - Right-click anywhere on the page and select Inspect, or press
F12. - Open the Console tab in Developer Tools.
- Refresh the page.
- Review the list of warnings. Each entry will show the insecure URL being blocked or downgraded.
You can also check the Security tab in Chrome DevTools for a summary of the page’s secure and insecure origins.
Update CMS site URLs
If you use WordPress, mixed content is often caused by the site address configuration. Before updating individual resource links, verify your core site settings:
- Log in to your WordPress admin dashboard.
- Navigate to Settings > General.
- Check the WordPress Address (URL) field.
- Check the Site Address (URL) field.
- If either field begins with
http://, update it tohttps://. - Click Save Changes.
Update internal links and resource references
Once you have identified the insecure URLs, edit your website’s source files or content management system to replace http:// with https:// for:
- Image
srcattributes - Stylesheet
hrefattributes - JavaScript
srcattributes - iframe
srcattributes - Font and icon references
- Internal page links and canonical tags
Where possible, use protocol-relative URLs (for example, //example.com/image.jpg) so the browser automatically matches the page’s protocol.
If you use a content management system such as WordPress, a search-and-replace plugin can help update database references from HTTP to HTTPS across posts, pages, and media attachments.
Check external assets
Third-party resources such as embedded videos, analytics scripts, or advertising networks must also support HTTPS. If an external provider does not offer a secure version, contact them or replace the asset with a secure alternative.
Enforce HTTPS site-wide
After fixing mixed content, make sure all traffic is redirected to the secure version of your site. The exact steps depend on your hosting control panel:
cPanel
- Log in to cPanel.
- Navigate to the Security section.
- Select SSL/TLS Status or look for the Force HTTPS Redirect option.
- Toggle the redirect to On.
- Save the changes and test your website.
Plesk
- Log in to Plesk.
- Go to Websites & Domains.
- Select your domain and click Hosting Settings.
- Enable Permanent SEO-safe 301 redirect from HTTP to HTTPS.
- Click OK to apply the changes.
If your control panel does not include a built-in HTTPS redirect option, you can enforce HTTPS by adding a redirect rule to your website’s .htaccess file.
http:// links in your theme or template files. Always use relative paths or https:// to prevent mixed content from returning after future updates.Troubleshooting
Warning persists after updating links
- Clear your browser cache or test in an incognito/private window.
- Purge any caching plugin or CDN cache, such as Cloudflare.
- Check hardcoded links in your theme files, not just page content.
Padlock still shows as insecure
- Verify every resource on the page loads over HTTPS, including images in headers and footers.
- Use an online SSL checker to confirm your certificate is installed correctly and not expired.
- Ensure your site’s WordPress Address (URL) and Site Address (URL) are set to
https://if applicable.
Content blocked by browser
Some browsers actively block mixed content rather than just warning about it. If scripts or images fail to load entirely, updating every reference to HTTPS is required to restore functionality.
If you host with us and prefer not to manage this yourself, just Open a Ticket and our Brisbane team will get it sorted.
Still Having Issues?
💻 Open a Ticket