WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:

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?

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.

up vote 2 down vote accepted

JavaScript is not allowed on WordPress.com 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.