29 July 2018

How to Fix HTTPS Mixed Content Errors in Blogger

Leave a Comment
In our previous article, we have discussed how to move your custom domain Blogger blog from HTTP to HTTPS. After enabling HTTPS on your blog, you may have to make some changes in your blog content due to mixed content errors.

Fix mixed content errors in Blogger

If the browser doesn't show any green color padlock icon on your website and mark it as "Not secure", that means there are some mixed content errors in your website. This tutorial will guide you how to fix mixed content errors in your Blogger blog.

What are Mixed Content Errors?


Mixed content errors occurs when an SSL certified web page contains both HTTPS and HTTP content. The web page is actually loaded over HTTPS connection, but its follow-up content (such as images, videos, stylesheets, and scripts) is hosted on non-secure HTTP websites.

If a webpage contains mixed content errors, the browser will block all non-secure HTTP links of the webpage due to some security reasons. It can also affect user experience and site performance of your website.

Mixed content errors generally occurs when a webpage requests insecure content from other sources such as -
  • Insecure script request
  • Insecure image request
  • Insecure video request
  • Insecure third-party link request

How to Check Mixed Content Errors in Your Blogger Blog


Follow this step-by-step guide to find mixed content errors in your Blogger website -
  1. First, open Google Chrome browser and visit your website or any web page where you want to check mixed content errors.
  2. Now open Chrome menu and go to More Tools > Developer Tools > Console or press CTRL+SHIFT+J key to open JavaScript Console box.
  3. Here you will find all mixed content errors of the webpage like this -
    Find mixed content errors in Blogger
    Mixed Content: The page at 'https://<your-website>.com/' was loaded over HTTPS, but requested an insecure script 'http:///<some-url>/script.js'. This request has been blocked; the content must be served over HTTPS.
Similarly, check other pages of your Blogger blog (such as posts, static pages, labels etc.) and make a list of all insecure URLs that are causing mixed content errors.

Now you have to replace all these non-secure HTTP URLs with the secure HTTPS version in your Blogger template, posts, pages and gadgets.

How to Fix Mixed Content Errors in Blogger Template


Follow these steps to fix mixed content errors in your Blogger template -
  1. Login to your Blogger Dashboard and go to Template > Edit HTML.
  2. Now click anywhere in the template editor and press CTRL+F to open the search box.
  3. Type http:// and hit Enter button.
  4. Replace all http:// occurrence with https:// Make sure that the new link is working.
    Fix mixed content errors in Blogger template
  5. After changing all insecure URLs you have listed earlier, tap the "Save Template" button. That's it.

Fix Mixed Content Errors in Blogger Posts & Pages


Here's a step-by-step to fix mixed content errors in your Blogger posts and pages -
  1. Login to your Blogger Dashboard and go to "Posts" or "Pages" section.
  2. Now open any post or page where you want to fix mixed content errors.
  3. Switch to the "HTML" tab in the Post editor.
  4. Now press CTRL+F to open the search box and search for http://
  5. Replace every http:// with https:// Make sure that the new link is working with HTTPS.
  6. Once after updating all URLs, click the "Update" button to save the changes.
Blogger has introduced a new feature that allows you to find mixed content errors in your posts. As you switch to the HTML tab in the post editor, Blogger will automatically look for mixed content errors and show you a warning message if any error is found.

Fix Mixed Content Errors in Blogger Gadgets


Sometimes, mixed content errors can also be caused by the HTML/JavaScript gadgets you have added to your Blogger blog. Here's a step-by-step guide to fix them -
  1. Go to your Blogger Dashboard and click Layout.
  2. Now click "edit" link on each HTML/JavaScript gadget you want to edit.
    Edit Blogger gadgtes
  3. Replace all http:// links with https:// and save the changes.
    Change HTTP to HTTPS in Blogger widgets
Note: Make sure to verify if each updated HTTPS link is working. If a content (such as image or script) is hosted on HTTP only and you can change to HTTPS, then it won't load. In that case, either you have to remove that content or upload it on a secure HTTPS website.

So that's how you can fix mixed content errors on your custom domain Blogger blog after adding a SSL certificate. If you are facing any problem, feel free to share it in the comment section.

Leave A Comment