0

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

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

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

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

Am I doing something wrong? Can this be resolved?

closed as off-topic by fuxia 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.

2

JavaScript is not allowed on WordPress.com blogs.

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