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

How to add Google search to website

πŸ“… 2019-Sep-08 ⬩ ✍️ 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>

Β© 2022 Ashwin Nanjappa β€’ All writing under CC BY-SA license β€’ 🐘 @codeyarns@hachyderm.io β€’ πŸ“§