*****IN ORDER FOR THIS TUTORIAL TO WORK YOU NEED TO GET A SSL CERTIFICATE FOR YOUR DOMAIN****
For most sites you can get a free SSL certificate from Let’s Encrypt. Most hosts off this easily through their cpanel. Ask you host how you can do this, if you can’t see the option.
Some hosts when it is applied it works straight away, others take 12-24 hours for the DNS to update and it to work.
Once your certificate is working – you can test it by trying the htps://addyourdomain.com format – changing the previous http:// you had. If the site loads then the certificate is working.
REDIRECTING YOUR SITE TO HTTPS
Once the certificate is working on your domain you need to change your site address to https://
Firstly in your dashboard go to Settings – General and change the address for both WordPress Address and Site Address to https:// (adding in the s is fine) you will be logged out and need to log back in again)
Next you need to redirect any old links you have with the http:// to the new https://You can do this with code, but you can also do it easily with a plugin
I use WP Force SSL plugin. Add it to your site in the normal way and activate it. That’s it.
FIXING INSECURE AND MIXED CONTENT WARNINGS
You may see once your site is working on https:// you still get an Insecure content warning in your browers. This is due to some of your content not loading over https:// this can be due to external links in widgets for example.
I use the SSL Insecure Content Fixer plugin to resolve this.
Add the plugin and activate, test your site and if the warning has gone you don;t need to change any settings. I generally find I do, so then in your dashboard go to Settings – SSL Content Insecure and chose the ‘Capture’ option – test your site and if all working then that is it sorted. If not then try the ‘capture all’ and then it should all be working and no mixed content settings
(if you use a cache plugin clear your cache)
If after this it is still showing a warning go to Why no Padlock? and test your site. It will tell you what is causing it.