How to add google search bar in header?

Discussion in 'AdSense' started by techbeam, May 25, 2007.

  1. #1
    Google adsense search bar can be placed via adding a new page element in the header.However this method increases the header width and sometimes leads to parsing error.

    Here is a simple way of adding search bar to your blog header.Use google custom search instead of adsense search.Generate the codes and place your codes in the template editor as shown below.

    <div class='descriptionwrapper'>
    <div align='center'>

    <form action='http://search-techbeam.blogspot.com/' id='searchbox_013643209037587684121:pdpcz0upjp8'>
    <input name='cx' type='hidden' value='013643209037587684121:pdpcz0upjp8'/>
    <input name='cof' type='hidden' value='FORID:11'/>
    <input name='q' size='40' type='text'/>
    <input name='sa' type='submit' value='Search this blog'/>
    </form>

    <script src='http://google.com/coop/cse/brand?form=searchbox_013643209037587684121%3Apdpcz0upjp8' type='text/javascript'></sc
     
    techbeam, May 25, 2007 IP