Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I wish the function that the cse.js is loading asynchronously. :-)
Google itself offers this feature for its search yes also:
<script>
(function() {
var cx = 'partner-pub-xxx:xxx';
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>
Is this done with the Adsense module?
Thanks and best regards
Frank
Comments
Comment #1
jcnventura CreditAttribution: jcnventura commentedThis module supports only the AdSense-generated CSE code. This should be handled by the Google Custom Search Engine.
I'm not sure if they support the "Make money" option, but it's really something best solved by using that module.