Fix SSL Mixed Content Issues on WordPress
There are certain URLs with http in your site’s code, which is referred to as mixed content. On a third-party website, you can verify this: https://www.whynopadlock.com/
Enter your site’s https URL first, and it will display all the results for URLs with http in your site code.
On the other hand, you may just right-click on the page and view the page source in your browser. Next, select “see page source.” If you look in the site code for “http://,” you will see URLs.
This can be fixed by placing the following aggressive redirection code at the top of your domain’s.htaccess file.
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^(www\.)?coolexample\.com
RewriteRule ^(.*)$ https://www.coolexample.com/$1 [R,L]