Google Search bar in your website
Google Search bar on your website
Dear friends, lately I realized that many sites are using a valuable tool - the Google Search bar.
(Above the article’s title you can find a Google Search bar – try it out to see how the results are represented.)
Note that adding the search bar to your main page is highly advisable, so every time you search for something, your site or blog will benefit from the clicks and not Google…
In order to make your life easier, I have added the code below. You can use it anywhere on your site, where a HTML code can be added, like your advertising banners. Just copy-paste and save it and you are ready to go.
<script>
(function() {
var cx = '010543794653279224926:ppwoxygnvh4';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:search></gcse:search>