Take the 2-minute tour ×
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 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?

share|improve this question
add comment

closed as off-topic by toscho Jan 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

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
add comment

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