prestashop: add google custom search

 

header.tpl line 135

Search box Code

<div class="google-search" >
<div id="global_shipping"><span>In Service Since 2009</span></div>
<script>
(function() {
var cx = 'XXXXXXXXXXXXXXXXXXXXXXXX';
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:searchbox></gcse:searchbox>
</div>

 

Google Results.

<gcse:searchresults></gcse:searchresults>

 

Leave a Reply

Your email address will not be published. Required fields are marked *