Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Fix the Mixed Content Error in WordPress (Step by Step)

Are you seeing the mixed content error in WordPress?

The mixed content error in WordPress is caused by incorrect HTTPS/SSL settings. Often, it doesn’t affect your website’s functionality, but it can have adverse effects on your website’s SEO and user experience.

In this article, we will show you how to fix the mixed content error in WordPress.

How to fix the mixed content error in WordPress

What Is the Mixed Content Error in WordPress?

The mixed content error happens when your WordPress website is supposed to be secure (using HTTPS/SSL), but it still serves some stuff, like images or scripts, using an insecure connection (HTTP).

Adding SSL and HTTPS in WordPress is important because it encrypts the info going between your website and people’s browsers, making it harder for hackers to grab personal info. Google also prefers secure sites for search rankings.

All the best WordPress hosting companies offer free SSL as part of their packages. If your hosting company doesn’t provide that, then you can get free SSL through Let’s Encrypt for your WordPress site.

If your SSL is set up right, you will see a little green padlock in the address bar, showing it’s secure.

Secure content sign

But if not, you might see a broken padlock and a message saying your connection isn’t fully secure.

Like so:

Not fully secure due to mixed content

You can find mixed content errors by using the Inspect tool.

The mixed content error will be displayed as a warning in the console with details for each mixed content item.

Mixed content displayed in developer tools

Not fixing the mixed content error can make your site more likely to get hacked and cause visitors to not trust your brand. Plus, it could make your site harder to find in search results.

That being said, let’s take a look at how to easily fix the mixed content warning in WordPress.

Fixing Mixed Content Error in WordPress

The easiest way to fix mixed content errors in WordPress is by using the SSL Insecure Content Fixer plugin. This plugin offers various levels to fix the error, so you can choose the one that suits your website needs best.

First, install the plugin in your WordPress admin area. For more details, see our step-by-step guide on how to install a WordPress plugin.

Upon activation, you need to visit the Settings » SSL Insecure Content page from your WordPress admin sidebar to configure the plugin’s settings.

SSL secure content plugin settings

This plugin provides different levels to fix mixed content warnings. We will explain each one of them, what they do, and which one is best for you.

1. Simple

This is the fastest and most recommended level for all beginner users. It can automatically resolve mixed content errors in WordPress for scripts, stylesheets, and WordPress media library images.

2. Content

If the Simple level doesn’t fix the WordPress mixed content warnings, then you should try the Content setting. It will use all the features of Simple, along with checks for fixes inside WordPress content and text widgets.

3. Widgets

This level includes all fixes applied in the Content level, plus an additional fix for resources loaded in the WordPress widgets on your website.

4. Capture

This method captures everything on every page of your website, from header to footer, and replaces all URLs with HTTPS. It is slower and can affect the performance of your WordPress website.

5. Capture All

When all the above levels fail to fix the mixed content warnings in WordPress, then you can try this setting. It attempts to fix everything which may result in unexpected behaviors on your website. It will also have the most negative impact on performance.

After selecting a content fix level, you can move down the page and find the ‘Fixes for specific plugins and themes’ section.

If you use the WordPress plugins or themes listed in this section, then you can check the boxes here. This will ensure that the content supported by these plugins doesn’t have insecure content warnings.

Next, if your website includes links or resources that are hosted on external sites (not your own), you can enable the ‘Only fix content pointing to this WordPress site’ setting.

This will prevent the plugin from attempting to change those links to HTTPS.

SSL Insecure Content plugin settings for specific plugins, themes, and external sites

Now, let’s scroll down to the ‘HTTPS detection’ section.

Here, you can choose how to detect the HTTPS content on your website.

HTTPS detect

The default option is to use a standard WordPress function, which will work for most websites.

Below that, you will find other options that are useful if you are using Cloudflare CDN, an Nginx web server, and more.

Go ahead and select the method that you think applies to your website, depending on your particular setup.

Finally, don’t forget to click on the ‘Save Changes’ button to store your settings.

You can now visit your website to see if this has resolved the insecure content issues on your website. Make sure to clear your WordPress cache before checking your website.

If the mixed content error in WordPress is not fixed, then you will need to revisit the plugin’s settings page and readjust the fix levels.

Are you still seeing the mixed content error? You may need to check your site for other SSL-related problems. We recommend checking our article on how to fix the most common SSL issues for WordPress beginners.

Learn More Ways to Solve Common WordPress Errors

Are you seeing other types of errors in your WordPress website? Don’t worry, here are some guides you can check out:

We hope this article helped you learn how to fix the mixed content error in WordPress. You may also want to learn how to get a free SSL certificate for your website and our tips on fixing ’ERR_SSL_VERSION_OR _CIPHER_MISMATCH’ in WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

51 CommentsLeave a Reply

  1. Olaf

    Mixed content can sometimes be quite a tricky problem, but I’ve learned to tackle it more radically by making adjustments directly in the database. For the past few months, I’ve been using the Search and Replace plugin, and it’s great. After installation, you enter “http” in the search field and “https” in the replace field. The plugin finds all HTTP URLs that might appear in the code and replaces them with HTTPS. It works practically every time and resolves the issue once and for all.

  2. Jiří Vaněk

    Thank you for the recommendation to use SSL Insecure Content Fixer. Until recently, I was using Really Simple SSL. However, this plugin has changed significantly and no longer focuses solely on mixed content, shifting more towards overall website security. As a result, it has grown a lot, and I feel that it started to slow down some of my sites. That’s why I’ve been thinking about replacing it with something that only handles mixed content and is lighter, putting less strain on the website. SSL Insecure Content Fixer looks like a great alternative and a replacement for the original Really Simple SSL.

    • Olaf

      I have a practically identical opinion. I appreciated Really Simple SSL for being lightweight and for doing just one thing: addressing mixed content. It does this quickly and safely. It has often fixed problems that would otherwise involve complex database content modifications and searching for HTTP requests in the code. It’s a shame that this plugin has changed so significantly because, until recently, it was the ultimate tool for its purpose.

  3. Mohamed Ibrahim

    You saved our day! My team and I spent half the day trying various ways to solve this issue. Somehow, I ended up on your blog, and now the issue is fixed. Thanks for sharing!

    • WPBeginner Support

      Glad our guide could help you fix this issue! :)

      Admin

  4. Mrteesurez

    The plugin is simple and worked out of the box. Apart from Google preference on SSL, A site with SSL issue will be regarded as non secured and users will be skeptical to enter their details or order products on the site, this will hamper user’s trust.
    That is why all issues related to SSL including mixed content error required serious concern to get it solved as soon as possible.

  5. Blue

    I had to select the “capture all” option, but it fixed the mixed content issue I was having with my dropdown menu! Thank you!

    • WPBeginner Support

      Thanks for sharing what worked for you! :)

      Admin

  6. Tiya

    My site is AdSense approved. If I use it to fix my mixed content issue. Will it affect my ads?
    Please solve my query.

    • WPBeginner Support

      Fixing the mixed content shouldn’t cause an issue.

      Admin

  7. Nilla

    Installed the SSL Insecure Content Fixer and ran Simple option, which cleared everything in Chrome for my test site. Installed the plugin on the live (identical) site but only cleared certain pages.

    • WPBeginner Support

      You would want to clear any caching and resave your permalinks for the most common solutions but you would want to reach out to the plugin’s support for assistance

      Admin

  8. Pelumi

    Thanks!
    Solved my site problem!

    • WPBeginner Support

      Glad our guide was helpful :)

      Admin

  9. Pawan Jaju

    Really Helpfull, Thank you soo much

    • WPBeginner Support

      You’re welcome :)

      Admin

  10. Pardeep Kumar

    Yes, This really worked for me. Opetion No. 4. Capture saved my time and efforts.

    • WPBeginner Support

      Glad our guide was helpful :)

      Admin

  11. theinformativo

    Thanks a lot, for the help, I was stuck with the mixed content issue but after this method, everything got fixed thanks a lot.

    • WPBeginner Support

      You’re welcome, glad our guide was helpful :)

      Admin

  12. Alex

    Thank you Capture Helped me solve the issue. But i am wondering if there is any way to make the site’s Performance improved. Thanks

  13. Gaiman

    There is no “SSL Insecure Content” on the settings.

    • WPBeginner Support

      You may want to ensure the plugin is installed and activated and you are an admin user of your site for the most common reasons

      Admin

  14. John

    Very helpful thanks!

    • WPBeginner Support

      You’re welcome, glad you found our guide helpful :)

      Admin

  15. Francisca

    None of the options worked for me

    • WPBeginner Support

      It would depend on what file is causing the error, if it is a theme file you would likely need to reach out to your theme’s support for fixing the file.

      Admin

  16. Leonel

    Hi, Great article. It works for me but only Capture all option.

    Thanks

    • WPBeginner Support

      Thanks for sharing the option that worked for you :)

      Admin

  17. James Haselhofer

    What happens when you want to display insecure links on your secure site but the SSL certificate is preventing them from showing?

    I want to include links to California’s Caltrans traffic cams on my site but since they’re insecure, they show up on the backend. No mixed content warnings, it just won’t show them on the front end.

    I can’t just call the state of California and tell them to add security to their traffic cam links, so is there any fix for this?

    • WPBeginner Support

      You could use a URL shortener such as Bitly to link to the HTTP link through an HTTPS shortened link

      Admin

  18. Herman

    The plugin didn’t work with simple option but did with content option. How do I identify and fix the files or should I just leave as is? If so, does the plugin cause slower loading times?

      • Deepak

        I used search and replace plugin. It fixed my problem temporarily but i see the issue again after a few minutes. I dont understand why. can you suggest?

        • WPBeginner Support

          You may want to check the caching on your site from plugins and your host to ensure it didn’t cache the mixed version.

  19. Harmeet Singh

    Thanks,
    It solved my mixed content problem when I have selected the
    setting “Capture” in the SSL Insecure Content plugin. So do
    I leave it as it is or do I change it back to simple.

    Regards

    • WPBeginner Support

      You would go back to the default once you fixed the files that were causing the issue.

      Admin

  20. Real Name

    thank you very very much the plugin method worked for me thanks once again.

    • WPBeginner Support

      Glad our guide could help :)

      Admin

    • Abhishek

      Thanx bro elementer tool replace url worked for me :)

    • Veronika

      Thank you so much. I couldn’t figure out why my site is showing as not secure after I tried so many things and your suggestion finally wroked.

  21. anis sk

    thank you very very much the plugin method worked for me thanks once again.

  22. Ana

    Hey, I switched to https with the plug in downloaded the plug Really Simple SSL and have issues with Mixed content. I’ve downloaded the plug in as indicated and have ended trying all the available options up until capture all, but I’m afraid that it is not working. Any ideas why, or any possible solutions? Thank you.

  23. Des

    Good article and thanks for the plugin recommendation.

  24. Advait

    Great article, it helped me fix our mixed content issue. Recently we switched our Wordpress site to https. I had to use the plugin on “Capture” level before our mixed content errors got fixed. Is that the end of the issue? Or do I need to research and fix the underlying issues that created the mixed content problem in the first place?

    Thanks again for a very useful article.

  25. Colin

    Why have you deleted my comment?

  26. alex

    hi
    thank you for this useful post. why wpbeiginner doesn’t use https/ssl ???

    • Colin

      I pointed that out after yours and they deleted it as they can’t answer that question.

      They also have mix content issues and won’t fix them…..why?

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.