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:

		<div id="globalsearch" class="globalsearch">
<form method="get" action="http://www.google.com/search" target="_blank" class="navbar_search"> <input type="hidden" name="sitesearch" value="yoursite.com"  id="pn"/>
				<input type="hidden" name="s" value="" />
				<input type="hidden" name="securitytoken" value="" />
				<input type="hidden" name="do" value="process" />
				<span class="textboxcontainer"><span><input placeholder="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?"