How to Use Google Custom Search Engine on HTTPS Websites Fix

I recently experience this issue and I’m going to show you how to use Google Custom Search Engine on HTTPS websites. This happens when I switched over my website from HTTP to HTTPS. When I access the website it says “Your connection to this site is not fully secured” when you click on the exclamation sign. This means that the site is secured using HTTPS but there is/are something on the website interfering with the connection. Also, it caused an shield icon on the right-hand side to appear saying “This page is trying to load scripts from unauthenticated sources“.

Sometimes when customers come to your website and see these messages it could scare them away. But don’t worry about these messages guys, it is only saying that adjustments need to be made on the Google Custom Search Engine. Without further ado, I am going to show you how to use Google Custom Search Engine on HTTPS websites.

Read also: How to Fix “Catchable Fatal Error Object of Class WP_Error Could Not Be Converted to String” in WordPress

Screenshots of the messages

This screenshot below shows the circle with the exclamation sign and and the shield with a red X.

How to Use Google Custom Search Engine on HTTPS Websites Fix

This screenshot below shows when you click on the circle with the exclamation sign. It states that the connection to this site is not fully secure.

How to Use Google Custom Search Engine on HTTPS Websites Fix

This screenshot below shows when you click on the shield with the red X. The message that is displayed is saying that this page is trying to load scripts from unauthenticated sources.

How to Use Google Custom Search Engine on HTTPS Websites Fix
How to Use Google Custom Search Engine on HTTPS Websites Fix

How to Use Google Custom Search Engine on HTTPS

I search long and hard for a solution to this error and could not find it. So, what I did was go to my Google Adsense account in the Custom Search Engine section and click “get code” to view the code. What I noticed is that HTTP was in the code instead of HTTPS. So, what you need to do is replace the HTTP with HTTPS and paste it in the website. When you refresh the page it should display “Secure Connection” with a padlock and the shield with the red X is gone. It works like a charm.

How to Use Google Custom Search Engine on HTTPS Websites Fix

How to Use Google Custom Search Engine on HTTPS Websites Fix

Conclusion

This message occurs on many websites using a secure HTTPS connection but it’s not fully secure because of minor things. Mine was the Google Custom Search Engine and using this method will definitely resolve this issue. Do you have other ways of resolving this issue? If so, you can share it with us in the comment section. If you like my article on “How to Use Google Custom Search Engine on HTTPS Websites”, kindly subscribe and like our Facebook page. To make this website awesome and keep us motivated to write more tutorials you can show us some love by hitting that donate button or click here. Thank you 🙂

Share your thoughts on this topic