When browsing the internet, you might have seen the “Not Secure” warning on some websites. This happens when the website’s URL starts with “http” instead of “https”. To avoid this warning and make your website more secure, you need to use an SSL certificate on your website.
However, after installing SSL, you may still see a warning that says your website has “mixed content”. In this article, we’ll show you how to fix the mixed content error in WordPress step by step.
What is Mixed Content Error?
Mixed content error in WordPress occurs when a website has both HTTP and HTTPS content. HTTPS is a secure protocol, while HTTP is an insecure protocol. When a website is loaded over HTTPS, the browser checks to see if all resources, including images, scripts, and stylesheets, are also loaded over HTTPS. If any resource is loaded over HTTP, the browser will consider it a mixed content error and show a warning to the user.
Mixed content errors can make your website look unprofessional and cause security issues. Therefore, it’s essential to fix mixed content errors as soon as possible.
How to Check for Mixed Content Errors in WordPress
Before you can fix the mixed content error in WordPress, you need to identify the resources causing the issue. Here’s how to check for mixed content errors:
Open your website in Google Chrome.
Right-click on the page and click on “Inspect”.
Go to the “Console” tab.
If there are any mixed content errors, they will be listed here.
You can also use online tools like Why No Padlock or SSL Check to check for mixed content errors.
How to Fix the Mixed Content Error in WordPress
Once you’ve identified the resources causing the mixed content error in WordPress, you can fix it by following these steps:
Update the URL of your resources: Go to your WordPress dashboard, then click on “Settings” and then “General”. Change the WordPress Address (URL) and Site Address (URL) to https:// and save the changes. This will update the URL of your website and fix most mixed content errors.
Use a plugin: If you’re not comfortable editing the code, you can use a plugin like Really Simple SSL or SSL Insecure Content Fixer. These plugins will automatically update the URLs of your resources and fix the mixed content error.
Manually update your resources: If the mixed content error is caused by specific resources like images or videos, you can update their URLs manually. Go to the page or post where the resource is used, click on the “Edit” button, and then update the URL of the resource to HTTPS.
Mixed content errors can make your website look unprofessional and cause security issues. Therefore, it’s essential to fix them as soon as possible. In this article, we showed you how to fix the mixed content error in WordPress step by step. By following these steps, you can make your website more secure and professional-looking.