Mixed content warnings appear when an HTTPS page loads some of its files over plain HTTP, and the browser blocks or flags those files. The fix is to make every internal URL in the database use HTTPS, ideally by changing the WordPress site address, then rewriting remaining http:// links in the database, and finally confirming that no hard-coded URLs in themes or plugin settings still point to HTTP. You should have a full database and file backup before starting, since the database edit is the one step you cannot casually undo.

You can spot mixed content by opening the page in a browser and looking at the padlock or warning icon in the address bar, or by right-clicking the page, choosing Inspect, and reading the Console or Network tab for blocked insecure requests. This guide assumes you can reach WordPress admin and that SSL is already installed and working on the server.

What You'll Need

  • Administrator access to the WordPress dashboard.
  • Access to your hosting control panel or file manager, and phpMyAdmin or another database tool.
  • A working SSL certificate already installed and active for the domain.
  • A recent full backup of both the database and the site files. Export the database as SQL and download it somewhere safe, not just on the server.
  • Optional but useful: an FTP or SFTP client for editing files directly.

Step-by-Step

  1. Back up first. Export the database through phpMyAdmin or your host's backup tool, and download the site files. Record the current WordPress address and site address values so you can restore them if something breaks.
  2. Confirm SSL is active. Visit your site with https:// manually typed in. If the padlock appears and the page loads, the certificate is installed. If not, fix the certificate through your host before touching WordPress settings, because switching URLs without working SSL will lock you out or produce errors.
  3. Update the WordPress address and site address. In the dashboard go to Settings > General and change both the WordPress Address (URL) and Site Address (URL) fields from http:// to https://. Save. Labels may differ slightly between WordPress versions and hosts. If your site uses a custom domain in a hosting panel, check there too, since some hosts set the scheme separately.
  4. Make sure the site does not force HTTP back. If wp-config.php contains hard-coded WP_HOME or WP_SITEURL constants with http://, edit them with FTP or the file manager and change them to https://, or remove them so the database values apply.
  5. Rewrite remaining database links. Post content, image links, widgets and custom fields often still store http:// URLs even after the site address changes. Use a reputable search-and-replace plugin, or run a guided search-replace through WP-CLI on the server. Search for your old domain with http:// and replace it with the same domain using https://. Replace only your own domain, not every instance of http://, which would corrupt links to external sites and internal serialized data.
  6. Check plugin and theme settings. Page builders, sliders, galleries, SEO plugins and caching plugins often store their own base URLs. Open each plugin's settings and look for a site URL, CDN URL or asset URL field still set to HTTP, and update it. Caching plugins in particular may have cached HTTP asset paths in generated CSS.
  7. Clear all caches. Clear the WordPress caching plugin, any server-side page cache, and your CDN cache if you use one. Purge browser cache too, or test in a private window. Cached HTML is a very common reason a fix appears not to work.
  8. Test the result. Open several pages, including the homepage, a blog post with images, and a page using a contact form, in a private window. In the browser developer tools, check the Console and Network tabs for any remaining requests over http://. Each blocked request points to the file that still needs fixing.
  9. Add an HTTPS redirect. If HTTP still loads the site without redirecting, add a redirect at the server level, either through your host's panel or in the .htaccess file for Apache, so all traffic moves to HTTPS. If you are unsure how to edit server configuration, ask your host's support for help rather than guessing; a malformed .htaccess can take the site down.

Common Mistakes

  • Replacing every http:// in the database. This breaks external links and can corrupt serialized data, which often leaves widgets and theme options blank or scrambled. Always target your own domain name.
  • Skipping the backup. A bad search-replace on serialized data can be painful to reverse. Export the database before you begin.
  • Changing URLs before SSL works. If the certificate is not active, switching to HTTPS can lock you out of the dashboard. Verify the HTTPS address works first.
  • Forgetting cached HTML and CDN copies. Old pages keep serving HTTP asset URLs until every cache layer is purged.
  • Overlooking hard-coded URLs in theme files. Some themes and child themes include template files with absolute http:// image or script links. Search theme files for the old domain too.
  • Ignoring third-party embeds. An iframe or script served from a provider that only offers HTTP cannot be fixed by editing your site; it must be replaced or removed.

Tips

  • Use relative or protocol-relative URLs in custom code where it suits the design, so the scheme follows the page automatically.
  • Run the search-replace with a dry-run option first if your plugin or tool offers one, then check the count of affected rows before committing.
  • Test on a staging copy if your host provides one, especially for image-heavy sites where serialized data is common.
  • Keep a note of the old and new URL values so you can document what changed for future reference.
  • After the fix, review your WordPress admin under Tools > Site Health for any HTTPS-related notices, since it flags some common configuration issues.

Troubleshooting

The dashboard loads but the front end still warns. Clear the page cache, CDN and browser cache again, then re-check the developer Console for the specific blocked file. Fix that file's source rather than the whole site.

You changed the URL and lost access to the dashboard. Use phpMyAdmin to open the wp_options table and find the siteurl and home rows, then set them back to the previous values, or edit wp-config.php to add WP_HOME and WP_SITEURL with the correct address. Restore the database backup if you cannot locate the rows.

Images and layout broke after a search and replace. Serialized data was likely altered incorrectly. Restore the database from your backup and repeat the replacement using a tool that handles serialized values, targeting only your domain.

A single script or font stays insecure. Identify the provider in the Console. If it supports HTTPS, update the link. If it does not, remove or replace the service.

The padlock shows but some pages warn. Individual post content may still contain old HTTP links in the editor. Search the post for http:// and update the media or link.

Frequently Asked Questions

Is mixed content a security problem or just a warning?

It is both. Browsers block insecure files on HTTPS pages by default, and anything loaded over HTTP can be intercepted in transit. The padlock warning also undermines visitor trust.

Can I fix mixed content without a plugin?

Yes. Changing the site address in settings, editing constants, and running a search-replace through WP-CLI covers the same ground. Plugins mainly make the database step simpler and safer.

Will changing to HTTPS break my SEO rankings?

Usually not, and it is the correct long-term setup. Make sure the HTTP version redirects to HTTPS and that internal links point to the new address so search engines follow the move.

Why do images still load over HTTP after the database change?

Post content stores absolute URLs, and caches may still hold old HTML. Update the links in the editor or run a domain-specific search-replace, then purge every cache layer.

Do I need to change URLs in email templates or external tools?

Check any system that links to your site, such as email templates, sitemaps, or third-party integrations. They often store the full address with the old scheme.

What if my host cannot provide SSL?

Most hosts do, and many include it free. If yours does not, HTTPS cannot work reliably, so ask about options or consider moving to a host that supports it.