Web Development Blog

Twitter

08 Dec, 2007

Google custom search engine

Web Development » Google, Search » Google custom search engine

I have heard of Google Custom Search Engine since a few months ago, but not until recently I gave a good attention and decided to set one up for this blog. Setting up is really simple and it can be done just in a matter of seconds. Here’s a step-by-step guide on how to set up a Google Custom Search Engine for your website:

1. Login to your Google account
2. Go to Google Custom Search Engine homepage
3. Click on “Create a custom search engine button” and it will take you to a form
4. Fill in all the relevant details into the form and click “Next”
5. Provided that there was no error, you will be presented with a “Preview and Congratulations” page. Click “Finish”.
6. Now, to personalise the look and feel of the search engine you just created, go to Manage your existing search engines page.
7. You will see the search engine you just created listed under “My Search Engines”. Click on “Control Panel”.
8. When you are in “Control Panel” page, click on “Look and Feel” link from the top navigation. It allows you to customise the style of your search results pages to match your site.
9. When you are happy fiddling around with the style and have saved the changes, click on “Code” link from the top navigation to get the source code to put into your site
10. Choose “Host results on a non-Google site using an: iframe – requires two pages: one for the search box and another for the results” option
11. Create a new page in your website, name it “Search” and upload it to your web server (If you are using WordPress, login to WordPress Admin, click on Write -> New Page and publish it).
13. Put the URL of the page you just created into URL field provided under “Specify search results details” section
14. You will notice that source code for “Search box code” and “Search results code” are updated on the fly with the URL you put into the URL field
15. Although Google says you need two pages for the iframe option, you can actually get away with just one page. Copy and paste both “Search box code” and “Search results code” into the search page you created earlier in Step 11.
16. Make necessary changes such as the width of the textbox in “Search box code” [input type="text" name="q" size="25"] or the width of the search result iframe in “Search results code” [var googleSearchFrameWidth = 600].
17. Once you are happy with everything, upload the page back to your web server (or republish the page if you are using WordPress).
18. And that’s it – you now have a Google Custom Search Engine perfectly integrated into your website!

The thing I love about Google Custom Search Engine is that it can be integrated with other google products such as iGoogle, Adsense and Analytics, which means you could add the search engine to your google homepage, make money from it, or keep track of what people are looking for on your site.

Google Custom Search Engine rocks! Have a look at the google custom search engine I created for this blog.

Screenshots

Google custom search engine

Google custom search engine

Google custom search engine

Google custom search engine

Technorati Tags: , , , , ,

Other similiar posts that you might be interested in:

2 Responses to "Google custom search engine"

1 | Alfred

January 2nd, 2008 at 9:20 am

Avatar

Hmm i always wanted to add the google search option to my wordpress site. but the theme comes with a defualt search box on the main page.

do you know how to integrate the search to that box ?

2 | eisabai

January 2nd, 2008 at 7:56 pm

Avatar

To replace wordpress default search engine with google cse, replace html code in searchform.php file of your theme with search box code provided by google. The rest of the steps are pretty much the same as outlined above.

Hope it helps. :)

Comment Form

ebook
Subscribe to our newsletter and receive FREE e-book "7 Days Exercise to Build More Traffic To Your Blog"
Your name:  
Your email:  

  • About
    The blog Web Development Blog is where I keep myself up to date with the latest technologies in the industry and share my ideas and thoug...
  • Adsense Tips and Tricks
    With personal and commercial blogs, community websites, and social pages becoming the hot topic of the Internet in the last few years, many...
  • Advertise With Us
    Web Development Blog is a blog about Web Development, Web Design, Web Applications, Web 2.0, AJAX, Search Engine Optimisation, Latest Techno...
  • Archive
    Grab yourself a cup of coffee or tea, sit back and browse through an archive of all the blog posts on Web Development Blog....
  • Choosing a Content Management System
    The most commonly asked question when it comes to Content Management System is whether to build or buy (pre-built). While there are many fa...
  • Coupons
    Use the following coupon codes, promos and discount codes to save money on web hosting, domain names, website templates, ebooks, software, p...
  • Customised WordPress Themes
    If you would like a customised WordPress theme for your blog or your website, read on: (or head to WordPress Themes page to get free WordPre...
  • Favourite Poems
    If by Rudyard Kipling If you can keep your head when all about you Are losing theirs and blaming it on you, If you can trust yourself w...
  • Favourites
    Books Web Development Books Magazines Glamour Reader's Digest Software Adobe Photoshop CS4 Trend Micro Antivirus + Antispyw...
  • How to Start a Blog?
    What's a blog? According to Wikipedia, a blog is a user-generated website where entries are made in journal style and displayed in a reve...
  • Introduction to JSP Standard Tag Library (JSTL Basics)
    Tag libraries to include in your .jsp page <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> &l...
  • Links
    Free Anonymous Proxy Increases your privacy and security on the Internet by using our free, fast and easy to use web proxy. data backu...
  • Making a Passive Income Online
    Passive income, in my opinion, means an income which does not require a lot of regular maintenance work or continuing effort. I have been t...
  • Online Distribution Channels
    One of the importances of any website or business is to bring your products or services to the right people and to reach the target audience...
  • Recent Projects
    Followings are some of the recent projects I have done in 2006 -- 2007. Check out my latest business venture Web design Sydney to get your...
  • Recommended Web Development Books
    Many developers often ask me what books I read and what books I recommend in regards to web development and web technologies such as AJAX, J...
  • Search
    Looking for something on Web Developement Blog? Use this search tool powered by Google Custom Search to find what you are looking for just ...
  • Seven Tips to Building an Online Presence for your Business
    1. Get a domain name for your business The first and foremost step in building an online presence is to secure a domain name for your busi...
  • Seven Tips to Increasing Your Website’s Traffic Using SEO
    SEO is the buzz word - many people have mentioned it and many have heard of it too, but very few people know how to implement it properly. ...
  • Subscribe
    Newsletter [newsletter] RSS 2.0 feeds Entries feed Comments feed Subscribe using your favourite web-based or desktop feed r...
  • Useful Linux Commands
    Find files older than 60 days find * -mtime +60 Delete files in backup folder which are older than 60 days rm -f `find /backup/ -mtime ...
  • Web Design Tips
    Nowadays, having a website for your business is like having a phone number. Almost every business has their own website, with their own doma...
  • Web Development Books
    Many developers often ask me what books I read and what books I recommend in regards to web development and web technologies such as AJAX, J...
  • Web Hosting Comparison Chart
    The following are some of the most popular web hosting providers. I have personally used the recommended ones. Hosting coupon codes will ...
  • Web Standards
    Web Standards is defined as a set of rules or specifications that should be followed when developing a website.  The main objectives o...
  • WordPress Themes
    All WordPress themes are designed and coded by esn studio, and licensed under GPL license. If you would like a customised WordPress theme fo...
  • Sam: Useful. I always forget the rel target one
  • Chronic Tinnitus: Hi, Thanks for taking the time to discuss a really confusing matter - I find Plesk so much more awkward than the cpanel that I'm used to. Thanks Chr
  • Serhiy: I personally liked the web hosting comparison chart. Especially the recommended *. I got Bluehost :) .-= Serhiy´s last blog ..

Interests

Web development, Web design, Open source technologies, Portal development, APIs, Web services, Social media applications, Search engine optimisation, Mobile application development, iPhone Apps, Web 2.0, Web 3.0, Latest Internet technologies

Misc.

  • bluehost Hosting $6.95/month
  • Joomla Templates