May 27, 2012

Widgets

How To Connect Two Pages To Use Google Search Box?


create Google Search box Google custom search engine for websites and blogs is another way to provide easy navigation to your visitors and readers as well as make some extra cash out of Adsense. Its best advantage is that it will help Google to index your pages quickly. All those pages which are indexed by this search box function is automatically indexed by robots and added to Google's databases.  Its not just about Making money but about deep indexing and site navigation. After the introduction of Plus project, Google developers have transformed all services to look like Google Plus. They recently introduced a search box which looks exactly like Google's official search box. You can see it towards to top right corner of our site. If you insert a query inside the box and hit enter you will land on a different page where results are displayed.
We have dedicated a whole new page for search results in order to provide users with more flexibility. You may also notice that as soon as the search page loads, the search box at the top-right disappears and instead you see one inside the middle of the page. In order to connect two pages in blogger you will have to follow this easy tutorial.





Note before you may start you must learn how to create a custom search box and how to integrate AdSense into it. We have already published detailed tutorials on it which you may follow below:
Google Custom Search Engine Series
Part1: How to Create a Google Search box?
Note: Follow this part only to create the box, stop where it tells you how to add it to blogger. We will learn how to add it by connecting two pages in today's tutorial.
Part3: Customize the Fonts and Colors of the search box
Note:-
You wont require reading this part if you want to use the latest Blue Look that the tutorial today shares.
Part3: How To Connect Two Pages To Use the Google Search Box?

Choosing the style

We assume that you have read Part1 above and you are ready to choose the GooglePlus style box.
  1. Go To http://www.google.com/cse/manage/all
  2. Click the control panel link next to your search box title
  3. From the left menu choose "Look and Feel"
  4. For layout choose "Two Page"
  5. For Style choose "New! Default"  If you wish to customize the link colors on the search results page, click the customize button to make the changes
create google search box
    6.  Click Save & Get code
    7.   Now do not close the window and open a a new tab and do this:
  • Go to blogger
  • Click Pages form list menu
  • Create a new page and title it "SEARCH RESULTS"
  • Write nothing inside it and click Publish
  • Now visit this new page and copy its URL from browser address bar
  • Done!
    8.    Now go back to the first window where you have the code for the search box.
    9.    Where it asks for Specify search results details paste inside the first box the URL of the SEARCH RESULTS page you just created. See the screenshot below for our page
search results details
Inside the second box where you are asked to specify the query parameter embedded in the URL of search results, you can keep it default or you can simply replace the letter "q" with your blog short name. If you search anything on our blog you will see MBT parameter appearing in the URL inside the address bar as shown below:
query parameter
   10.  After you have filled the two boxes click "Save Changes"
   11. You will see two big boxes containing a code. Copy the code from first box which says "Paste this code in the page where you'd like the search box to appear. "  And Paste it inside a HTML/JavaScript widget and drag this widget to your blog layout's top-right position as shown below:
. position  search box
Note: In the above step we created a HTML/JavaScript widget by going to blogger > Layout > Add a Gadget and then chose HTML/JavaScript widget.
    12.  Now after you have positioned the search box the only part left is adding the second code inside your SEARCH RESULTS page. To do this copy the second code from the box which says "Paste this code on URL of Your SEARCH RESULTS Page, where you'd like the search results to appear".
Now go to your SEARCH RESULTS page inside blogger and paste the code inside the HTML section of the editor as shown below:
search results page
    13.  Hit update and you are all done!
Visit your blogs to see a million dollar worth search box right on your sidebar. Play with it to see how search results appear. :)

Hide the Search box and Social Networking Buttons

Your Page might also be displaying social networking buttons and Adsense Ad below title. In order to clean up the search page you must hide them and also hide the search box in the sidebar so that visitor may not see two box on one page. To hide widgets kindly read our detailed tutorial on controlling the widget display in blogger:

Need Help?

This post may seem a little techy but believe us its really easy to implement. If you need any help or get yourself into any trouble just let us know pal. Let us know how did you find this tutorial and what else would you love to know regard Google powered Custom Search Engine. Take good care of yourselves. Peace and blessings pals. :)



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 »

37 comments:

Imran on May 27, 2012, 12:12:00 AM said... #

Thats a great post never knew that we can connect two pages in google search,thanks for sharing.
Tips and Tricks

ahmed safwan on May 27, 2012, 12:26:00 AM said... #

thanks mohammed but i didnot understand why do we need to do this part in the post

Vijay Prakash on May 27, 2012, 12:26:00 AM said... #

Hey Bro. . Really an new unique and awesome post :)

CSS Stylebot

Yung Kash SK on May 27, 2012, 8:17:00 AM said... #

You have a very strong blog and I like a lot of your blog posts. I have come here a few times in the past week and i like a lot of your informative posts and content.

Yung Kash SK's Music Blog

Santanu on May 27, 2012, 9:15:00 AM said... #

Nice info. Useful.

Govt Jobs in India @ Employment News India

Vijay Prakash on May 27, 2012, 10:08:00 AM said... #

Hey bro i too wont recognized whats the use of connecting !! can you give further info on it



DESIGN MASTER-An Official Template Release

Μουσικά Νέα on May 27, 2012, 5:48:00 PM said... #

Hello from Greece!! Thanks for all my friend!

MMK The Rocker on May 27, 2012, 11:43:00 PM said... #

As salamu alyikum mustafa bhai!
use this image code instead of Loading plz wait

<div align="center"><img src="http://4.bp.blogspot.com/-2SOeDcr52hg/TudZzPdUU_I/AAAAAAAAAuI/8--_Aecv9GA/s1600/Searching.gif" /></div>

Demo: http://mmktricks.blogspot.in/p/search-result.html

Linto Codes on May 28, 2012, 8:53:00 AM said... #

Nice Post dude...

Codes Blog - Blogging Tutorials Here

Ahmed Rashed on May 28, 2012, 1:24:00 PM said... #

my blog

http://mylifecaree.blogspot.com/

Ahmed Rashed on May 28, 2012, 1:25:00 PM said... #

@Imran
my blog

http://mylifecaree.blogspot.com/

yAhyA on May 28, 2012, 3:11:00 PM said... #

Assalam O Alaikym Mustafa bhai .. I reall need your help .. i need to know how to set browser compability for my blog ..

http://www.teentainment.com/2012/05/awesome-facebook-timeline-covers.html .. this page is showing no error in google chrome .. but in firefox .. the RECENT POST widget below the title is having some problem .. you can check yourself
its is due to browser compability .. can u help me about this please :)

Nirmal Kumar Sekar on May 28, 2012, 4:01:00 PM said... #

Can we change the colors of adsense ads that appear in search results? If so how?

Hamxa Wasim on May 28, 2012, 6:45:00 PM said... #

Great dude!

Admin on May 28, 2012, 9:16:00 PM said... #

Hello Mohammad..I love your tutorials and applied few on my blog...

I tried to reach you through your contact form but you didnt reply..bro i need help on this urgently..I have submitted sitemap(rss and your method for below 500 posts),have added metatag for blog as well as for few individual posts...but dude how they to show result like this : http://img252.imageshack.us/img252/1147/helplu.jpg

i.e both for your blog & facebook page..??

Waiting for your reply...I'll check this comment box regularly till you don't reply..help me bro...need it.

Bikram Biswal (Contact@funinventors.com)

www.funinventors.com
fb.com/funinventors

Arnel Cartoneros on May 28, 2012, 9:37:00 PM said... #

Sir Thanks for your post its really help me for my new blog design.But I need only a search box right my header only not on the post.Thanks

Mohammad Mustafa Ahmedzai on May 29, 2012, 7:14:00 PM said... #

@ahmed and @vijay

On a recent call with a Adsense agent harsha, she recommended us that we should better change the way search results appear just above our posts because this is pushing down the ads below post titles which can in some way violate Adsense TOS. Therefore we reacted promptly and now updated readers too. We are now more happy with way search results are appearing and in some manner it has increased Search CPM.


@yahya

Dude your problem is related to this post: Fix for Page navigation links :)

@Nirmal

Of course you can. Simply click the customize button in step#5 :)

@Admin
The link you sent me has expired pal. Please explain in detail so that I could put forward a solution. Don't worry I will try to reply early here buddy. Just stuck with multiple tasks.

@arnel
For that you will need to create a section for the search box inside header. May be you will need to split the header. this post can help: Split header into two sections

Admin on May 30, 2012, 6:13:00 AM said... #

Thanks for the post mate.

After following the steps above, i tried searching but it landed me on a 'this page doesn't exist' page

What do i do?

Here's my pagelink http://www.nigeriancareerstoday.com/

Thanks again

Admin on May 30, 2012, 12:45:00 PM said... #

Oops i uploaded that in Imageshack...may be some problem..ok this time i have uploaded it in tinypic...hope you can see it Mohammad.. :)

Direct Url of Image : http://i49.tinypic.com/2s5xpig.jpg

In case you fail to see the pic let me explain it further..just search "Trust me i am an engineer" in google and see the search result of that facebook page...i can see page's name and below a little arrow mark and direct link to their "photos" "post by others" etc etc...how is this possible?? This is the facebook page case...

Also i need the same for my blog...i want when someone search funinventors...it show more results just below my site description in google search...Help me dude..what i exactly need to do?

Mohammad Mustafa Ahmedzai on May 30, 2012, 8:15:00 PM said... #

@admin

check whether you have created the advertise page. Because the following link does not exist on your blog: http://www.nigeriancareerstoday.com/p/search-results.html


Create this page again and retry. You can give it a different name. You have followed all steps correctly.

Admin on May 30, 2012, 10:10:00 PM said... #

Oh i uploaded that with Imageshack..may be some prob...now i have uploaded it with tinypic.. hope you'll be able to see it.. :-)

Direct url of image : http://i49.tinypic.com/2s5xpig.jpg

If you still unable to see the pic..let me explain it further...Just google search "Trust me i am an engineer"...its one facebook page...in search result you will see some additional link below it like photos,posts by others etc etc...

And i want the same for my blog also...simply i want..whenever someone search "Fun Inventors" he/she gets more results just after my description... :-)

Help me in both cases...same thing...one for blog other for facebook page :-)

Admin on May 31, 2012, 5:00:00 AM said... #

Thanks Mohammed. I've resolved the problem

The link to the search page was http://www.nigeriancareerstoday.com/p/search-results_30.html

not http://www.nigeriancareerstoday.com/p/search-results.html

Thanks for the info you have on this page.

Adam Oullah on Jun 1, 2012, 3:34:00 PM said... #

Like that Adsense-facile.blogspot.com

Durodola Ridwan on Jun 6, 2012, 4:12:00 AM said... #

Mohammed Pls help me out, the search result page i created is showing in my menu bar/tab, pls how do i hide it?

Utkarsh Singh on Jun 24, 2012, 7:24:00 PM said... #

Hello,Can You Tell Me How to redirect the visitors to a page showing this- "maintenance,please retry after sometime"
I am asking this because I going to make lot of changes to my blog together, please reply.
Thanks In Advance,
www.freeroid.blogspot.com

Opridai on Jul 6, 2012, 11:22:00 AM said... #

@Mohammad it did everything right.but search result page is also appearing along with other pages on my blog.how to hide it

Durodola Ridwan on Jul 6, 2012, 12:17:00 PM said... #

Go to 'design' > 'page elements' and edit your page from the layout, there your can unmark/untick the search result page from showing from your menu bar/tab.

Samiullah Muhammed on Jul 11, 2012, 4:40:00 PM said... #

Actually i have applied the same to my blog. but the strange thing is in the top menu navigation i am able to see the search results menu..my question is how to remove the menu item from blogger.

Durodola Ridwan on Jul 11, 2012, 5:03:00 PM said... #

Read the reply to the comment above
www.realcombiz.com

Anas Boukricha on Jul 12, 2012, 6:19:00 AM said... #

Thanks For sharing! Great Post

Hamxa Wasim on Aug 2, 2012, 9:46:00 PM said... #

Thanks alot for sharing your widget | Modern Web Social Icons For Free!

Ishtiaq Ahmed on Sep 21, 2012, 10:18:00 AM said... #

Muhammad bhai i have some css problem how can i resolve plz help me my blog address is http://friends-soft.blogspot.com..aur jb mein search engine manag mein ja ker 2 pages link per click karta hai to google es ko save nahi karta phir wo purana code generate kar deta hai plz help me...

maqbool ur rahim khan on Oct 2, 2012, 12:05:00 AM said... #

Mohammad bhai ya to Mery post search naekr raha jb k search result ma google adds dkha raha hai hata k ma to google adsense use h nae krta

#soaps on Nov 18, 2012, 5:31:00 AM said... #

@Mohammad Mustafa Ahmedzai Thanks

atiqur rahman on Dec 3, 2012, 4:06:00 AM said... #

মোহাম্মদ ভাই আপনার পোষ্টটি খুব সুন্দর, আমি আপনার ব্লগের নিয়মিত ভিজিটর এবং রিডার।আপনার সকল পোষ্ট আমার ভালেলাগে।আমি এই রকম পোষ্ট অনেকদিন যাবৎ খুজছি, কিন্তু পাইনি। এবার আপনার ব্লগে পেয়ে গেলাম।আমি আমার ব্লগে সফলভাবে এটি করেছি তাই আমি খুবই খুশি। ধন্যবাদ ভাই শেয়ার করার জন্য।
আমার ব্লগ

wisnu nugroho on Jan 18, 2013, 6:35:00 AM said... #

thanks mohammad, you have shared
http://oqzigen.blogspot.com/

Ghulam Mhuhddeen on Feb 5, 2013, 4:28:00 AM said... #

WINDOWS LOADER 2.1.7 Thanks dude, nice Post .good admin Thnaxxx

Click Here To add Comment

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. No cheesy/spam Comments tolerated Spam comments will be deleted immediately upon our review.

Regards,
Mohammad

Support Us

If our Tutorials have helped you a little, then kindly spread our voice using the badge below:-

or try a Beautiful Banner


Widgets

 
  • MBT Icons and buttons

    Icons and Buttons

    Our resources have been successfully downloaded over 10K times and found almost every where. Get yours!

  • choosing webhost for a blog

    Why HostGator?

    Learn Why we chose HostGator as our Web Host and find discount coupons to kick start your blog today!

  • SEO Settings for blogger

    ALL IN ONE SEO PACK 2012

    Learn every single SEO tip that will boost your blog's ranking and organic traffic. We got them all!

  • Blogger widgets and plugins

    Visit MBT's Blogger LAB

    Why not take a tour of all great Blogger widgets published so far? You Name it we have it!

  • become a six figure blogger!

    Become a SIX FIGURE BLOGGER

    Learn what it takes to become a successful entrepreneur and build a living online!

About The Author

Hi! I am Mohammad, a certified SEO Consultant, Pro Blogger, Computer Engineer and an addicted Web Developer. Read More..

Recipes

SEO Affiliate Marketing Social Media

Make Money Online Web hosting

Blogging Tips Web Designing

Plugins and Widgets Blogging Ethics

Recent Comments

Popular Series

Powered by:

My Blogger Tricks © 2013. All Rights Reserved | Contact |