Mixed content occurs when a website loaded over HTTPS includes resources (such as images, scripts, or stylesheets) loaded over insecure HTTP. This article explains how to identify and resolve mixed content issues on a WordPress site to ensure a secure connection for your visitors.
Before you begin
You will need:
Administrator access to your WordPress dashboard.
A valid SSL certificate installed on your domain.
Access to a plugin manager or a database management tool (such as phpMyAdmin) if you prefer to perform a manual search and replace.
Fix mixed content using a plugin
The most common way to resolve mixed content is by using a plugin that automatically detects and updates insecure URLs within your database.
Log in to your WordPress dashboard.
Navigate to Plugins > Add New.
Search for a "Really Simple SSL" or "Better Search Replace" plugin.
Install and activate the chosen plugin.
If using Really Simple SSL, follow the on-screen prompts to enable the "Fixer" which automatically detects and corrects mixed content.
If using Better Search Replace, navigate to Tools > Better Search Replace.
In the Search for field, enter
http://.In the Replace with field, enter
https://.Select the tables you wish to search (selecting all tables is generally recommended for this specific task).
Uncheck the Run as dry run? box and click Run.
Warning: Before performing a database-wide search and replace, always create a full backup of your WordPress database.
Fix mixed content via the WordPress Site URL settings
If your site is still attempting to load some elements via HTTP, ensure your internal WordPress settings are correctly configured for HTTPS.
Log in to your WordPress dashboard.
Navigate to Settings > General.
Locate the WordPress Address (URL) and Site Address (URL) fields.
Ensure both fields begin with
https://instead ofhttp://.Scroll to the bottom and click Save Changes.
Fix mixed content in your theme or plugin files
If specific assets continue to load via HTTP after the steps above, the URLs may be hardcoded into your theme or plugin files.
Access your site's files via an FTP client or a File Manager.
Search your theme or plugin folder for instances of
http://.Replace these instances with
https://.Save the files and refresh your site.
Confirm the result
To verify that the mixed content is resolved:
Load your website in a browser (such as Chrome or Firefox).
Look for a "Not Secure" warning or a padlock icon in the address bar.
Use a tool like Why No Padlock? or a similar online scanner to confirm that no resources are being loaded over HTTP.
If the site shows a "Not Secure" warning despite using HTTPS
If your browser still flags the site as insecure, it may be due to a persistent cache.
Clear your browser cache: Clear the cache in your browser settings and reload the page.
Clear your WordPress cache: If you use a caching plugin (such as WP Rocket or W3 Total Cache), clear the site cache from the plugin settings.
Clear your server cache: If your hosting provider offers a server-side cache (such as LiteSpeed or Varnish), clear that cache through your hosting control panel.
Limitations
This process does not automatically fix content hosted on external domains that do not support HTTPS. If an external image is hosted on an
http://URL, it will remain mixed content unless that external source is updated to HTTPS.Hardcoded links in your page content (e.g., a link you typed manually into a post) will not be updated by the "Better Search Replace" tool; these must be updated manually.
