D'altronde se non lo metto qui nel body, dove lo metto? Uso html5
Codice PHP:
<script>
(function() {
var cx = '001846007576502258424:kg4u1b1a4yw';
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-only></gcse:searchbox-only>
Mi da questo errore:
Warning Line 198, Column 21: Element name gcse:searchbox-only cannot be represented as XML 1.0.
<gcse:searchbox-only></gcse:searchbox-only>
✉
Error Line 198, Column 21: Element gcse:searchbox-only not allowed as child of element div in this context. (Suppressing further errors from this subtree.)
<gcse:searchbox-only></gcse:searchbox-only>