Google Site Search in Blogger

Just so I don’t forget, this is how to put a Google Site Search (search within your domain) in your Blogger template:

<FORM METHOD="GET" ACTION="http://www.google.com/search">
<INPUT TYPE="hidden" name="num" value="10" />
<INPUT TYPE="hidden" name="hl" value="en" />
<INPUT TYPE="hidden" name="as_sitesearch" value="<$BlogURL$>" />
<INPUT TYPE="text" NAME="as_q" style="width: 100px;" />
<INPUT TYPE="submit" value="Search!" />
</FORM>

Copy/Paste into your Blogger sidebar and off you go!

3 thoughts on “Google Site Search in Blogger”

  1. note that this will not work in blogger beta because
    value=”” is not valid. hand-code the url here or figure out the new syntax for this.

  2. i’ve added it onto my blogger but it’s an overall google-search add, not a search within my domain… or do i have to change still something within the code?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.