Blog · How to

How to Fix Mixed Content WordPress

Oct 29, 2026By Vladimir Mrkela
Share LinkedInX
How to Fix Mixed Content WordPress

A WordPress site can appear secure while still loading images, scripts, or other resources over HTTP.

When that happens, browsers may warn visitors that the page contains mixed content, which can undermine trust and interfere with how the site displays or behaves.

These warnings often trace back to links saved in WordPress content, settings, or stored files, so finding the cause can take more than enabling HTTPS.

Understanding where mixed content comes from is the first step toward resolving it.

What Causes Mixed Content in WordPress?

Mixed content happens when your WordPress site loads its main page over HTTPS but requests some files, such as images, scripts, or stylesheets, over HTTP.

Mixed content occurs when a WordPress page loads over HTTPS but requests images, scripts, or stylesheets over HTTP.

This often starts after you add an SSL certificate but don’t update every URL stored in WordPress. For example, an image link in a post, a theme file, or a plugin setting may still use http:// instead of https://.

You can also create the problem when you copy content from an older site, use a hard-coded URL in a widget, or rely on an external service that serves files over HTTP.

The browser may block these files or show Browser security warnings because insecure content can expose visitors to risk. This issue differs from TLS certificate errors, which usually mean the certificate itself is missing, expired, or misconfigured.

How to Find Mixed Content in WordPress

To find mixed content in WordPress, start by checking which files the browser still loads over HTTP. Open your site in a browser, right-click the page, and select Inspect.

In Browser DevTools, choose the Console tab and reload the page. Look for warnings that name HTTP images, scripts, stylesheets, or fonts. Click a warning to see the affected address and page.

Check key pages, such as your homepage, posts, and contact form, because each may load different files. An SSL scanner can also crawl your site and list insecure URLs across multiple pages.

Compare its results with the browser warnings, since scanners may miss content that appears only after interaction.

Record each affected page and file address. This gives you a clear list of mixed content to investigate before making changes.

Back Up Your Site Before Editing

Before changing URLs or running a mixed-content fixer, back up your WordPress files and database so you can restore the site if something goes wrong.

Create a complete backup

  1. Use your host’s backup tool or a trusted plugin. Backup plugins can save your database and files, but check that both are included.
  2. If you prefer, download the files through your hosting control panel and export the database with phpMyAdmin.
  3. Store a copy somewhere outside your hosting account, such as your computer or secure cloud storage. Label it with the date so you can find the right version.

Check your recovery plan

Don’t assume a backup works just because a tool says it finished. Restore testing helps confirm that the files and database can be recovered.

Test on a staging site when possible, and keep the original backup until your changes are verified.

Update WordPress Site URLs to HTTPS

In WordPress settings, change your WordPress Address and Site Address from HTTP to HTTPS.

Save the changes, then verify that both URLs use HTTPS and load correctly.

Update WordPress Address

If your WordPress site still uses http://, update both the WordPress Address and Site Address to use https://.

These WordPress address basics help WordPress load its files and identify your site’s main URL. Before changing domain URL settings, confirm your SSL certificate works and that you can access your hosting account in case you need to restore the old value.

Change the WordPress Address

  1. Sign in to your WordPress dashboard.
  2. Go to Settings → General.
  3. Find WordPress Address (URL).
  4. Replace http:// with https://, keeping the rest of the URL unchanged.
  5. Save your changes.

If you can’t access the dashboard afterward, your host may let you correct the URL through its control panel or database tools.

Avoid changing other URL fields here unless you’re ready to handle their separate effects.

Update Site Address

Once the WordPress Address uses https://, update the Site Address to https:// as well so visitors and WordPress use the same secure domain.

In your WordPress dashboard, go to Settings → General. Find the Site Address (URL) field and change http:// to https://. Keep the domain name and any subdirectory unchanged. For example, change http://example.com/blog to https://example.com/blog.

This supports site URL consistency and keeps your domain configuration aligned with the WordPress Address.

Scroll down and select Save Changes. WordPress may sign you out, so sign in again using the secure address.

If you can’t access this setting, your hosting provider or a configuration file may control the URL; ask your host before making changes. Don’t switch between www and non-www versions unless your site already uses that format.

Verify HTTPS Settings

After changing both WordPress URL fields to https://, check that they saved correctly and use the same domain and subdirectory. For example, use https://example.com/shop in both fields if WordPress lives in that folder.

Confirm HTTPS works

  1. Open your site in a private browser window and visit a few pages. Check that each address starts with https:// and loads without a certificate warning.
  2. Review your host’s HTTPS certificate status. Make sure the certificate is active, matches your domain, and hasn’t expired. Contact your host if you see an error.
  3. Test your secure protocol redirect by entering the site’s http:// address. It should send you to the matching https:// page. If it doesn’t, ask your host how to enable redirects before changing server settings.
  4. Log in again if WordPress signs you out after saving. Then confirm the site still loads and both URL fields remain correct. Clear your browser cache if you see an old address.

Update HTTP links in your posts and pages to HTTPS, so visitors load every resource securely.

Check image and file URLs too, since media links can still trigger mixed-content warnings.

Use a search-and-replace tool, and back up your site before making bulk changes.

Update Content URLs

If your site still shows mixed-content warnings, some posts, pages, or media files may link to the HTTP version of your domain. Update links in your post and page content so they use HTTPS.

In WordPress, edit each affected item and replace links such as http://example.com/about with https://example.com/about. Check buttons, navigation text, and embedded links, too.

For many pages, use a search-and-replace tool that supports a database backup and serialized data. Search for your exact old domain and replace it with the HTTPS version.

Test a small set of pages first, then review the results.

Your Canonical URL strategy should also point to HTTPS pages. Where practical, use relative URL references, such as /about, for internal links.

Clear your cache, reload affected pages, and check the browser console for remaining warnings.

Changing links in your posts and pages won’t fix every mixed-content warning, because images and other media may still load over HTTP. Check image URLs, video embeds, downloadable files, and theme media references. Update each http:// address to https:// only when the server supports secure delivery. A media CDN may use a different domain, so confirm its HTTPS URL before replacing links.

Media source What to check
Images Attachment URLs
Videos Embed addresses
Downloads File links
Theme media CSS references

Use your site’s search-and-replace tool to update old URLs in the database, but back up first and test on staging. Avoid image hotlinking from sites that don’t offer HTTPS. Then clear caches, reload affected pages, and check browser developer tools for remaining HTTP requests. If a file still fails, upload it to your own secure library or ask your host for help.

Fix HTTP URLs in Themes and Plugins

When mixed content remains after you enable HTTPS, a theme or plugin may still load images, scripts, or stylesheets over HTTP. Find the source before changing files.

Open your browser’s developer tools, check the Console or Network panel, and note the insecure URL and the file that requests it.

Search your theme and plugin files for that exact HTTP address. Replace it with a relative path or an HTTPS URL, if the host supports secure connections.

Don’t edit a parent theme directly, because updates can erase your changes. Use Child theme overrides for template changes instead.

For plugin asset paths, check the plugin’s settings or documentation before editing its code.

If a plugin hardcodes an HTTP link and offers no setting, contact its developer or choose a maintained alternative. Avoid broad search-and-replace edits to code files.

Clear Caches and Verify the Fix

After correcting the insecure URLs, clear every cache that could still serve the old versions of your pages or files. Start with your WordPress caching plugin, then purge your hosting or server cache if your provider offers one.

Clear the CDN cache from its dashboard, too, so visitors don’t receive outdated copies.

Verify the fix

Open your site in a private browser window, or clear your Browser cache before testing. Visit pages that showed mixed content, including pages with images, stylesheets, scripts, and embedded media. Check that the browser’s address bar shows HTTPS and that no mixed-content warnings appear.

If a warning remains, open your browser’s developer tools and review the console for the insecure URL. Update that specific link, then clear the relevant caches again and retest.

Test a few key pages on mobile and desktop.

Prevent Mixed Content From Returning

To keep mixed content from returning, make HTTPS the default for every new link, upload, and third-party resource you add to your WordPress site.

Check your site’s settings and confirm both the WordPress Address and Site Address use HTTPS.

Keep new content secure

When you add images, scripts, or stylesheets, use HTTPS URLs or secure, relative links.

Review plugin and theme settings after updates, since they may restore older HTTP addresses.

Before publishing, check new pages and posts for links that begin with http://.

Maintain your setup

Set HTTPS renewal alerts with your hosting provider or certificate manager, so you can renew your certificate before it expires.

An expired certificate can make secure pages unavailable.

Use external link monitoring to spot third-party resources that switch to HTTP or stop loading securely.

When a warning appears, update the link or remove the resource.

Repeat these checks after migrations, redesigns, and major site changes.

Frequently Asked Questions

Can Mixed Content Affect WordPress SEO Rankings?

Yes, mixed content can hurt your WordPress SEO indirectly. You may trigger browser security warnings, lose visitors’ trust, and increase bounce rates. These effects can weaken organic visibility, though Google ranking signals don’t treat mixed content as a direct ranking factor.

Will Mixed Content Warnings Prevent Visitors From Using My Site?

Mixed content warnings usually won’t prevent visitors from using your site, but browsers may block insecure resources or show warnings. That can hurt browser compatibility, weaken Site visitor trust, and disrupt features, so fix mixed content promptly.

Does Mixed Content Affect Mobile Browsers Differently?

Mixed content doesn’t inherently affect mobile browsers differently, but mobile browser compatibility varies: your browser may block insecure resources or show warnings. Device specific rendering can make missing images or scripts more noticeable on phones.

Can a WordPress Security Plugin Fix Mixed Content Automatically?

Yes, a WordPress security plugin can fix mixed content automatically by rewriting insecure URLs or redirecting requests. Check its Plugin capabilities, though; mixed content limitations may prevent fixes when hard-coded links or external resources need manual updates.

Should I Contact My Hosting Provider About Persistent Mixed Content Warnings?

Yes, contact your hosting provider if warnings persist. Request a Hosting support escalation and SSL configuration review; ask them to verify HTTPS redirects and certificate settings. You’ll still need to check WordPress URLs, themes, and plugins.

Conclusion

Fixing mixed content usually means finding HTTP links and changing them to HTTPS. Back up your site first, update its WordPress and site URLs, then replace old links in posts, media, themes, and plugins. Clear your caches and check key pages in a browser to confirm the warnings are gone. If they remain, inspect the page for overlooked HTTP resources. Keep links current when adding content, and review your site after changing themes or plugins to catch issues early.

Tags
  • HTTPS migration
  • insecure resource URLs
  • WordPress mixed content

About the author

Vladimir Mrkela

Vladimir Mrkela

Senior WordPress Developer

I’m a senior WordPress developer and co-founder of Pixel Industry. I’ve spent more than 12 years building websites, custom plugins, and integrations for all kinds of projects. I enjoy working on complex architecture, solving tricky problems, and sharing what I learn along the way.

Ready to build?

Have a WordPress project that needs expert judgment?

Get a Free ConsultationTell us about your project and we will get back to you soon.