Build Online Store! | Penguin Panda Series - New! | 4 Rules To Make Money | SEO Settings | Facebook Popup 1, 2, 3 | Mashable 1 , 2


Friday, May 27, 2011

How To Create Google Custom Search Engine?


Pin It

Google-Custom-Search-EngineWhen it comes to crawling the internet or a website nothing can surely beat Google's searching technique. Blogger Templates that are found in various designs and colours often have custom search boxes in it, which I am sure you might have observed are incapable of displaying the relevant results. These search boxes by default are limited to their ability of searching each and every word of your blog. The best solution is to use Google Custom Search Engines (CSE) that are extremely efficient in digging out the most important data from your blog and displays it to the visitor. This increases the number of pageviews and page impressions of your blog because the reader is kept engaged in reading more and more. Further you can easily integrate your Google AdSense Ads to your Google Custom Search box, which again increases your blog revenue for every click made on the search results. An Example of such search engine can be found below every post of this (MBT) blog. So lets create and install a beautiful Google Search box for your blog.

How To Create a Custom Google Search Engine?

  1. Go To Google CSE
  2. Hit the create custom search engine button
  3. Fill the form as shown in the screenshot below,

set up your google search engine

   4.   The Click the next button and choose the Design for your search engine. You can click the "Customize" button to edit the colours and look.

customize-the-look-and-color

   5.  Hit the next button and then click the "Look and feel" link on the next page as shown below,

CSE-look-and-feel

It will bring you a page where you will find three layout options i.e Full -width, Compact and Two Column as shown below,

Google Search Engine Layouts

  • If you wish to add the search box just below posts as I have done on my blog then choose Full-width
  • Or if you wish to display the box and results on the sidebar then choose compact
  • Else if you wish to add your search box to your sidebar and display the search results above the post title then choose Two Column

  6.  Finally hit "save & get code" button and jump to the next part of our tutorial.

Add Google Custom Search Engine To Blog Posts

To add the search engine just below your blog posts as we have done on MBT then please follow the steps below,

customize Google Custome Search Engine

  1. Go To Blogger > Design > Edit HTML
  2. Backup your template
  3. Click the Expand Widgets Templates Box
  4. Search for <data:post.body>
  5. Just below it paste your Blog Post Search Engine Code (Full-width)
  6. Save and you are done!
  7. View your blog to see it appearing just below posts.

Add Google Custom Search Engine To Blog Sidebar

  1. Go To Blogger > Design
  2. Choose a HTML/ JavaScript Widget
  3. Paste your Sidebar Search Engine Code (Compact or Two Column) in it
  4. Save and you are done!
  5. View your blog to see it working just fine

Changing your default search box to Google Custom Search Engine Box is an important step that you must take as early as possible. You will see the difference in your analytics the next week. In the next post as shared below you will learn to integrate your AdSense Ads to your Custom Search engine and increase your Adsense earnings.

Hope you liked it! :)


If you enjoyed this post and wish to be informed whenever a new post is published, then make sure you Subscribe to our regular Email Updates!

If you don't want to get yourself into Serious Technical Trouble while editing your Blog Template then just sit back and relax and let us do the Job for you at a fairly reasonable cost. Submit your order details by Clicking Here »


Thanks for making this possible! Kindly Bookmark and Share it.
Technorati Digg This Stumble Facebook Twitter

32 comments:

Comment Page :
karan chauhan on 6:55 AM, May 28, 2011 said... #

great work mbt, now we can customize google search button also.
i thing it is more powerful than default search engine.
and eagerly waiting for a post on avatars also.

karan chauhan on 3:00 PM, May 28, 2011 said... #

Sorry mohd_ for disturbing you,problem solved for avatars,now you have no need to write an post on it..

Regards

Mohammad Mustafa Ahmedzai on 5:17 PM, May 28, 2011 said... #

@karan

No problem buddy. But I still need to post one on it as I have not shared it as yet and I have some beautiful designs for it which I hope you guys will like a lot. :>

Beben Koben on 9:47 PM, May 28, 2011 said... #

for code CSS we can make own (custome)
we just take the code for action and others...hihi
like that lah...hohoho (confused explained) LoL

Lucky Flaush on 11:35 AM, May 29, 2011 said... #

Is this legal, the customisation of the button? Also I'd like to ask you what you heard about the blogger bar? We should keep it on our sites? It is enough just to have a link to blogger?

Mohammad Mustafa Ahmedzai on 4:06 PM, May 29, 2011 said... #

@beben

You made me confused though. :p Didn't get your question?

@Lucky
It surely is legal because the customization is provided by Google itself.
For the blogger thing, I have heard that they have redeveloped it and given it a new look with web search form but I don't know if they can impose it as a must on all bloggers to display it at the top. Doesn't make sense.

Mohammad Mustafa Ahmedzai on 4:07 PM, May 29, 2011 said... #

@Lucky

Forgot about the link. I think we should add a "Powered by Blogger" Link in our blogs at least

Mari Berkomunitas Di Faceblog on 10:53 PM, May 29, 2011 said... #

hmm .. What can I edit it again?

so .. what's the difference from google code and the code manually? *to quality SEO*

Hetal Patil Rawat on 7:26 AM, May 30, 2011 said... #

Hello,

What if we need the search engine to appear only in post pages? With your method explained above it is appearing on homepage too under all posts.

Thanks....

Mohammad Mustafa Ahmedzai on 8:19 AM, May 30, 2011 said... #

@Mari
The above custom search engine was made available by Google to web masters so that Google could better index the website data as well as help the website visitors to get the most relevant search data. It is indeed a SEO must.

@Hetal

Oh I am sorry I forgot to mention that. to show the search engine only on post pages, simply enclose the search engine code between these lines,

<b:if cond='data:blog.pageType == "item"'>

PASTE SEARCH ENGINE CODE GOES HERE

</b:if>

Felix on 8:29 PM, June 03, 2011 said... #

@Mohmd, is there a way, I can add Google costume search box at the siderbar (compact) and also to the blog posts?

Mohammad Mustafa Ahmedzai on 1:58 AM, June 04, 2011 said... #

@Felix

You can use the same code as many times as you want. :>

Felix on 2:45 PM, June 04, 2011 said... #

@Mohmd, thanx 4ur prompt response, so that means after I create the GSE, obtain the code (compact) then implement it. I can re-modify the same GSE, obtain the code (full-width) and implement in post pages but in the same blog: OR should I create another different GSE for one at the sidebar and another at the post, meaning two GSEs but placed in different positions to track where searches are mostly done. I have currently implemented the (compact) in my blog but my my allies say they'll prefer both (compact, full-width) for easier searches, how do I go about this when using a single GSE??

Mohammad Mustafa Ahmedzai on 4:24 AM, June 08, 2011 said... #

@Felix
Forgive me for the late reply pal.
When you change the visibility mode of the search engine then of course coding will change. Yes you are absolutely right, You will have to create a separate CSE. This will better help you in monitoring the CTR. Hope this was clear. :>

samiullah on 2:56 PM, June 13, 2011 said... #

web design perth

Maxine Armitage on 5:55 AM, June 30, 2011 said... #

CSE changes to layout options - Thursday, June 16, 2011 - have resulted in the inability to carry out a date range search by adding, for example, '&as_qdr=d5' to search string. Do you know how I would do the equivalent search in the new environment?

Hannah on 10:55 PM, August 03, 2011 said... #

If you are using your Taz template. How do you place that in your search section you provided?

Harry on 11:28 PM, August 10, 2011 said... #
This comment has been removed by the author.
Harry on 11:30 PM, August 10, 2011 said... #

Hi buddy...i want to place search box just under the header...just like yours....how can i do that...plz help me...thanx...

William on 1:49 PM, August 23, 2011 said... #

Adding a custom search engine in your website is a good idea. You should really consider it.

dentist seo

Priyanka Rautela on 6:42 PM, September 13, 2011 said... #

Mohd.
Excellent post ,i was waiting for this post since many months but surprised how I missed it ...nonetheless good i asked u the other day otherwise i would have wasted more time looking here and there....ur way of explaining things are simply GREAT !!!
HATS OFF !!
THANKS THANKS THANKS ....
:)

eagles513 on 6:27 AM, November 19, 2011 said... #

This article is novel, I really love it. I also have some ideas written in my article, you can have a look if you have the interest. We can also discuss different topics.
Archie Manning Jersey
Deuce Mcallister Jersey
Jabari Greer Jersey
Jonathan Vilma Jersey
Malcolm Jenkins Jersey

Morten Andersen Jersey
Rickey Jackson Jersey
Roman harper Jersey
Sedrick Ellis Jersey
Bobby Hebert Jersey

phyllisjanes on 1:23 PM, December 02, 2011 said... #

I never know Google CSE can limit the search to a particular website. I always thought it was just an extension of Google. Now that you shared this trick, I'm seeing a lot of possibilities.

- seo outsourcing services enthusiast

Mahbub Hasan Rajib on 12:07 AM, December 11, 2011 said... #

How To Add Search Box Manually in Blogger

Click the Following Link for more useful articles on blogging that you really needed : http://premiumadmin.blogspot.com/2011/12/google-navigation-bar-at-top-of-your.html

website design perth on 5:17 AM, December 16, 2011 said... #

very nice informative article
the points disscussed are quite important to be considered
Website Design Perth

r14 on 9:03 AM, December 22, 2011 said... #

i have two cse's and I would like a drop down menu beneath the search bar that you can select which cse to use. Do you know how to do that. Specifically, I'm looking for code. Thanks.

sasha on 4:03 PM, January 07, 2012 said... #

nice post with good information.. website design perth

geocliks on 12:01 PM, January 10, 2012 said... #

Small bits of content which are explained in details, helps me understand the topic, thank you!


Search Engine Optimization

CookiTime on 7:39 PM, January 16, 2012 said... #

I chose 2 columes which I wanted the result to be show above the post, not in the top of the post, actually above it, where do I put the code it offered me?

div id="cse" style="width:100%;"></div "

It's Eusuf on 9:14 AM, January 29, 2012 said... #

i want the search result to be displayed like yours. please give detail procedure.

Bilal Tanveer Dar on 7:56 AM, February 26, 2012 said... #

thank you very much great tutorial
Best112 free windows softwares

Movie Kang on 1:07 PM, April 16, 2012 said... #

Hey,

i need help...ive place code in html wigets but it doesnt seem to search any blogs.

Confused? Feel free to ask

Your feedback is always appreciated. We will try to reply to your queries as soon as time allows.

Note:
1. To add HTML CODE in comments then please use our HTML Encoder
2. You can always Test the tutorial on our HTML Editor
3. Please do not spam Spam comments will be deleted immediately upon our review.

Regards,
Mohammad

 

Recent Posts

Join Me On Facebook

8600+ Followers

Join The Team!

Licensed Under CC

Recent Comments

Follow Me On Twitter

2601+ Followers

My Blogger Tricks (MBT) © 2012. All Rights Reserved | Contact |