Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to add Google search to website

📅 2019-Sep-09 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ ⬩ 📚 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>