Fixing WordPress Mixed Connect Warnings After Installing An SSL Certificate

If you install your SSL certificate and get a Your connection to this site is not fully secure message, your first step is to inspect the page. In Chrome you can use F12 and click the Console tab. If on inspection you get the message Mixed Content: The page at ‘http://www.thisisafakeurl.ie/‘ was loaded over HTTPS, but requested an insecure image ‘http://www.thisisafakeurl.ie/picture‘. This content should also be served over HTTPS. that is a Mixed Content error. Use this blog post to fix a Mixed Content error.

Testing your URLs

To test if you can load your URLs over HTTPS instead of HTTP, complete the following steps:

  1. Make a note of your problematic URLs.

  2. To test if the URLs work over HTTPS change HTTP to HTTPS in the URL and verify that they load properly.

Perform a search replace using Better Search Replace plugin

To test if you can load your URLs over HTTPS instead of HTTP, complete the following steps:

  1. In your WordPress dashboard click Plugins and click Add New.

  2. In the Search plugins… field type Better Search Replace.

  3. Click Install Now.

  4. Click Activate.

  5. Click Tools > Better Search Replace.

  6. In the Search for field, enter your problematic URL, for example, http://www.thisisafakeurl.ie/picture.

  7. In the Replace with field, enter your problematic URL but change HTTP to HTTPS, for example, https://www.thisisafakeurl.ie/picture.

  8. In the Select tables field select all the tables.

  9. Uncheck Run as dry run?.

  10. Click Run Search/Replace.

  11. Repeat until you replace all your problematic URLS.

  12. Refresh your page and check for error messages.