Code Yarns β€πŸ‘¨β€πŸ’»
Tech Blog ❖ Personal Blog

How to add Google search to website

πŸ“… 2019-Sep-09 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ google, search ⬩ πŸ“š Archive

Google provides a service called Custom Search which can be used to add search functionality to search your own website. That is, you can place a search bar in your website that your users can use to search only the content of your website using Google’s search engine.

<script async src="https://cse.google.com/cse.js?cx=blahblahblahblahblah:blahblah"></script>
<div class="gcse-search"></div>