Free Google Search bar on my website

Free Google search bar

Free Google search bar

Today I wanted to learn how to add a Google search bar onto a website I was learning to build. I didn’t want to build my own as it’s time consuming. I thought this may be the same situation for other people who don’t want to pay a web developer to create a search tab on their website. So, I thought i’d share the code I used with you!

If you want a Google search bar, such as this one, then simply add this code to your website.

Your search box will actually search the web, unlike the one above

The Code

There is a code provided by Google for a free search bar on your website. The code is below. You would place this code into your website to get your free Google search bar, although remember to remove your red dots (they just stop the blog reading the code).

_________________________________________________

<…………….form action…………=”http://www.google.co.uk/cse” id=”cse-search-box” target=”_blank”>
<…..div>
<..input type=”hidden” name=”cx” value=”partner-pub-2511377644467338:eu2dhlcarji” /….>
….>
<..input type=”text” name=”q” size=”31″ />
<….input type=”submit” name=”sa” value=”Search” /….>

..>

<…..script type=”text/javascript” src=”http://www.google.co.uk/cse/brand?form=cse-search-box&lang=en”>……>
Here’s the code as it should be… without the red dots.
Share

Northstar

Northstar Marketing is a leading digital marketing agency based in Glasgow, with over 10 yrs experience of growing brands online.

Comments

  1. Expert Website Consulting Services : August 2, 2011 at 5:09 pm

    I think that you may be reading my mind! I was looking for the exact same thing just the other day. Thank you for this post. I usually don’t like to post anything on my site that may take traffic away, but this tool is one that will be useful on certain pages within my website.

    Thank you again!

  2. You’re very welcome Expert Website Consulting Services. I think the quick code is the best route for people wanting to update their blog / website.

    We’ve added the free google search bar to this blog.

  3. Company Registration Delhi : January 3, 2013 at 8:18 am

    It is really good to visit to your post guys as we can get new information feom here, Thanks for this great share..

Leave a Reply

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