Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I would like to add Google custom search to my site.

I have pasted HTML code from custom search to text widget in a sidebar, but instead of search box, I got text:

google.load('search', '1', {language : 'en'}); google.setOnLoadCallback(function() { var customSearchControl = new'007267089725385613265:gmydx5gtw6u'); customSearchControl.setResultSetSize(; var options = new; options.setAutoComplete(true); customSearchControl.draw('cse', options); }, true); 

I guess does not allow Google's JavaScript to execute.

Am I doing something wrong? Can this be resolved?

share|improve this question

closed as off-topic by toscho Jan 14 '14 at 17:49

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

up vote 2 down vote accepted

JavaScript is not allowed on blogs.

share|improve this answer
Thanks, just like I thought. – Željko Filipin Aug 27 '10 at 14:28

Not the answer you're looking for? Browse other questions tagged or ask your own question.