Skip to content Skip to sidebar Skip to footer

How To Use Custom Search Box For Google Custom Search?

How to use custom search box for google custom search? I need to change the style for google search box into my own style..

Solution 1:

I think you need this:

<divid="globalsearch"class="globalsearch"><formmethod="get"action="http://www.google.com/search"target="_blank"class="navbar_search"><inputtype="hidden"name="sitesearch"value="yoursite.com"id="pn"/><inputtype="hidden"name="s"value="" /><inputtype="hidden"name="securitytoken"value="" /><inputtype="hidden"name="do"value="process" /><spanclass="textboxcontainer"><span><inputplaceholder="Search..."type="text"value=""name="query"class="textbox"tabindex="99"/></span></span></form></div>

you can custom your class and css

  • change this: value="yoursite.com"

Post a Comment for "How To Use Custom Search Box For Google Custom Search?"