The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Google Custom Search issues Reply To: Google Custom Search issues

Kevin Mamaqi

Is in the menu, at the right, but doesn’t display nothing and I don’t know why:

<div class="col-md-4 busqueda">
  (function() {
    var cx = 'partner-pub-CCCXXXCCCXXXCCCXXXCCC';
    var gcse = document.createElement('script');
    gcse.type = 'text/javascript';
    gcse.async = true;
    gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
        '//' + cx;
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(gcse, s);