There are two easy methods that you can use to fix mixed content warnings and errors on your WordPress website.
Method 1. Fix Mixed Content Errors and Warnings Using a Plugin
This method is easier and recommended for beginners. We will use a plugin that will find and replace HTTP URLs to HTTPs on the fly before sending it to user’s browser.
The downside is that it adds a few milliseconds to your website’s page load speed which is barely noticeable.
First, you need to install and activate the SSL Insecure Content Fixer plugin.
Upon activation, go to Settings » SSL Insecure Content page to configure the plugin settings.
Select the ‘Simple’ option and then click on the ‘Save changes’ button to store your settings.
Visit your website to look for mixed content warning errors.
Method 2. Manually Fix Mixed Content Issues in WordPress
This method can get a bit complicated for beginners. Basically, you’ll be finding the insecure URLs across your website and replacing it with secure URLs.
We will still use a plugin to find insecure HTTP URLs on your website. However, you’ll be able to deactivate the plugin once you have changed the URLs, so this will not impact your page speed like the first option.
Let’s get started.
First, you need to install and activate the Better Search and Replace plugin.
Upon activation, you need to visit Tools » Better Search Replace page.
Under the ‘Search’ field, you need to add your website URL with http. After that, add your website URL with https under the ‘Replace’ field.
Click on Run Search/Replace button to continue.
The plugin will now run and find all instances of your website URLs starting with http and replace them with the https.
The plugin works on your WordPress database, so it will only change URLs for your content areas.
If the mixed content resources are loaded by your WordPress theme or plugin, then you will need to inform the theme or plugin developer, so they can release a fix for that.