Script Google Custom Search shows display no entries
-
Hi Frank,
the script for “Google Custom Search” has changed and now no entries will display after search on the search result site.I think the problem is to exclude the script on the page for the search results in the customization from Plugin Autoptimize.
I have the problem to find the name for the script to exclude it from script optimizing:
<script>
(function() {
var cx = ‘partner-pub-…..’;
var gcse = document.createElement(‘script’);
gcse.type = ‘text/javascript’;
gcse.async = true;
gcse.src = (document.location.protocol == ‘https:’ ? ‘https:’ : ‘http:’) +
‘//cse.google.com/cse.js?cx=’ + cx;
var s = document.getElementsByTagName(‘script’)[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:searchresults-only></gcse:searchresults-only>Which is the name to exclude optimizing (Folgende Skripte von Autoptimize ausschlie?en) it from Plugin Autoptimize?
Thank you for help
Mustermann
- The topic ‘Script Google Custom Search shows display no entries’ is closed to new replies.