Change The Width Of The Google Search Bar On Your Blog

7:24 AM | ,

Once again this post was suggested by a reader asking how i managed to get the very wide Google Search bar below the posts on Spice Up Your Blog.The search bar in question is above the comments on every post and i have made a slight change to the code to make the bar stretch across the lenght of the posting area.

Change The Width Of Google Search Bar

Once you get the code for your search box you can add it to your sidebar or anywhere in your template.To change the width you simply change the input size.So look through the search bar code until you find this snippet :

<input type="text" name="q" size="31" />

Now change the size from 31 as it is above to the size you require.The search bar i use below the posts uses the size 62 :

<input type="text" name="q" size="62" />

You can play around with the sizes until you find what your looking for.

Important : While it is OK to change the width of the Google search bar do not ever change any code for AdSense ad units as it is against the AdSense T.O.S.
 
Gadgets By For Bloggers