I am wondering to know how to implement the google personalized search inside my Boutique template since the code is a script:
- Code: Select all
<script>
(function() {
var cx = '005626605444055210219:gceezfsc-i0';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
'//www.google.com/cse/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:searchbox></gcse:searchbox>
How to create a module with this code ?
Thanks