Show menu

Skip to content
  • Home|
  • About|
    • Contact|
    • Support this site|
  • Blog|
  • Archives|
    • WordPress|
    • Web Design|
    • Software|
    • Robotics|
    • LEGO|
    • Tutorials|
  • Plugins|
    • Code Snippets|
    • BuddyPress Security Check|
    • Post Formats|
    • Personal Email|
    • Bookmarks Shortcode|
  • Resources|
  • PortableApps|
    • Bricx Command Center Portable|
    • ColorConsole Portable|
    • NeXT Commander Portable|
    • QuickPHP Portable|

Shea Bunge

Google+ GitHub WordPress WordPress Stack Exchange Twitter Subscribe Contact
You are here: Home / Add a Google Search form to your website

Add a Google Search form to your website

Published on 26th June 2012
Add a Google Search form to your website

If you’re looking for a way for visitors to search your website but don’t want it to be fancy or go to the effort of creating a Google Custom Search, you can easily implement a form to search Google but only show results from your site. Simply copy the following code where you want the search form to appear. Remember to replace example.com with the URL of your site.


<form action="http://www.google.com/search" method="get">
	<input type="hidden" name="q" value="site:http://example.com">
	<input type="text" name="q" alt="search">
	<input type="submit" value="Search">
</form>

And that’s about it! Not very complicated, but perfect if you want a simple, no-fuss way for visitors to search a site you’ve created.

Share this:

Like this:

Like Loading...

Possibly Related Posts

  1. Contact
  2. How to send visitors back to where they came from
  3. About
  4. WordPress 3.3 Beta 4
Posted in Featured, Web Design | Tagged Google | Leave a response

Post navigation

← How to send visitors back to where they came from ManageWP for Chrome: Link to your dashboard from the new tab page →

Leave a Reply Cancel reply

About Me

I'm a teenage Web developer, specialising in WordPress and PHP code. I make lots of cool open-source projects. Read more…

Stack Exchange

Combined Stack Exchange profile for bungeshea

Affiliates

ManageWP Dropbox .htaccess made easy Pippin's Plugins

Follow Blog via RSS

RSS Feed RSS - Posts

RSS Feed RSS - Comments

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 16 other subscribers

Copyright © 2013 Shea Bunge

Proudly powered by WordPress

Follow me on Twitter

My Tweets

Buffer

Be awesome on social media. Easily add great articles, pictures and videos to your Buffer and we automagically share them for you through the day!

Signup to Buffer using the button below and we'll both get awesome extras!

Signup to Buffer

Dropbox

Dropbox is a free service that lets you bring your photos, docs, and videos anywhere and share them easily. Never email yourself a file again!

Signup to Dropbox using the button below and we'll both get 500 MB of bonus space (on top of the usual 2 GB)!

Signup to Dropbox

RSS The NXT Generation Robotics

  • Paper plane folding and shooting robot
  • LEGO MINDSTORMS EV3
  • Code for RoboCupJunior Rescue now available on GitHub
  • Everything you need to know about the ultrasonic sensor
  • RoboCupJunior Hobart Regional 2012: Round 1

RSS LEGO BrickFORCE

  • LEGO Minifigure Infographic
  • LEGO Star Wars 2013: First pictures finally!
  • LEGO Star Wars 2013: A sneak preview
  • Brixhibition Announced
  • A new look
  • Archives
  • About Me
  • Contact Me
  • Donate
  • Privacy Policy
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.
%d bloggers like this: