Customize Google Custom Search Box Part 2

Google Custom Search Search Box designs
Google Custom Search is just like a dream come true for any Website owner. The ability to provide your readers with Google-like searching power into your website's vast archives that too at no expense. It makes sure readers searching for a specific topic that you published a long time is never missed by them. But there is a shortcoming in terms of designs to choose from. Here I will be showcasing 6 different designs of search boxes which will surely suit your blog.


Do remember to check out the previous 6 Search Box Designs for your Google Custom Search Box

I am assuming that you have already setup your Google Search Custom search engine. In case you haven't ,then first check this guide for setting it up for your blog .There are many variations Google Custom Search with options of AutoComplete and other features but normally looks something like this



Here you can't really see where to apply the styling as the form tag is dynamically added via JavaScript after the page load. Now the following code also works the same way as the above Code, only thing is that it is easy to Customize and also loads faster :


In the id "searchbox_XXXXXXXXXXXXXXXXXXXXX:YYYYYYYYYYY" , XXXXXXXXXXXXXXXXXXXXX:YYYYYYYYYYY is your "Search engine ID" which you can find on the Control panel of your search engine.

If you are using the Adsense linked GCS then your search Box should look something like this:



How to Add it To Blogger:

Either you can install it directly using the One-Click Installer or follow the steps below

1.In Your Blogger Dashboard Click Template > Edit HTML





2. Find the following piece of code : (Press Ctrl+F for a search bar to help find the code )


]]></b:skin>


3. Copy and Paste any one of the CSS code that you like from below Directly just Above


]]></b:skin> .

4. Now go to Layout > Add a Gadget and add the corresponding HTML of the Search Box code into a HTML/JavaScript Gadget

Note: Make sure to insert your own "Search engine unique ID" for the Search box to work.


Design 1



Demo

Add using One Click Installer into Blogger


Or add it manually

CSS
HTML

Design 2



Demo

Add using One Click Installer into Blogger


Or add it manually

CSS
HTML


 Design 3

Demo

Add using One Click Installer into Blogger


Or add it manually

CSS
HTML


 Design 4

Demo

Add using One Click Installer into Blogger


Or add it manually

CSS
HTML


Design 5

Demo

Add using One Click Installer into Blogger


Or add it manually

CSS
HTML


Design 6

Demo

Add using One Click Installer into Blogger


Or add it manually

CSS
HTML


Special thanks to Catalin Rosu for designing these search and login forms . Don't hesitate to ask any problem you face while adding these search boxes to your blogs

Written by Prayag Verma

Find me on Twitter

Email Newsletter

Like what you read here in this post ?
Get new posts delivered straight to your inbox

Post a Comment

Wow so beautiful. Thanks a lot Prayang Verma for this hard work ^_^

upiL Gue said...

nice ..

Rounaj said...

Really a awsome tutorial..

Hi Prayag...
Nice work bro...It seems that you have put a lots of effort on this article....gr8 job

Dear Prayag

Thanks for the awesome search buttons. It works fine but the result page some problem. Have any idea? Trever Reznick

For your poll: YOU MUST RUN ADS. You're not Wikipedia, but Wikipedia collects donation every year as per their requirements. The ads amount will give reward for your hard work. Its my opinion.

Thanks for the valuable post.

I checked your blog , there is some conflict with the CSS , add the following CSS to fix it


.gsc-result .gs-title {height: 1.4em !important;}

.gsc-input{position: relative !important;top: -5px !important;}

img.gs-image {
padding: 0px !important;
-goog-ms-box-shadow: 0px 0px 0px rgba(0,0,0,0) !important;
-moz-border-radius: 0px !important;
-moz-box-shadow: 0px 0px 0px rgba(0,0,0,0) !important;
-webkit-border-radius: 0px !important;
-webkit-box-shadow: 0px 0px 0px rgba(0, 0, 0, 0) !important;
background: transparent !important;
border-radius: 0px !important;
box-shadow: 0px 0px 0px rgba(0, 0, 0, 0) !important;
}


This should surely help

About the Poll , I will surely heed to your advice as I am myself trying to find ways to earn using this blog

My dear Prayag!

I don’t know how to say thanks in words. You took your precious time for me to fix my css error. Now it is working fine. I really appreciate you. I will promote this site as much I can.

Million Hearty Thanks.

Unknown said...

Hi Prayag,

Sorry for going off-topic but i really want to ask how did you manage/make your blogger mobile template (/?m=1) different from other default mobile templates.

Unknown said...

Plus one more thing off-topic,sorry once again,my 404 ain't working,i was hoping you could help me out. http://www.themusicrover.com/404

In the Menu for choosing Mobile Template , I have selected the Custom option. Rest of the conversion of my template to mobile is handled by Blogger automatically. Responsive design helps a lot in this case

Just add the following CSS just after the CSS you added for the Picture

#navigation-wrap , #main-wrapper , #footerbg , #header-wrapper { display:none !important;}

Now the image will appear without any other element present

One more thing , you might want to change percentage from 30% to 48% in the background image to make it look more centered

Unknown said...

Thanks a ton,worked just fine.

utsav said...

awsome...
creation....

Hey nice designs mate.Can you do the same for WP?

Unknown said...

very nice post..keep posting more content..also visit my blog..

Regards,
tricksandteach.blogspot.com

Nice Design i was looking for this

Thanks

Is there a way to add Google Speech to the search box

Simply add x-webkit-speech="x-webkit-speech" to the input field , Did a post about this earlier http://www.stylifyyourblog.com/2011/10/speech-enabled-input-fields-in-chrome.html

Thanks for this write-up. It is helpful for me since I am using blogger and word-press on blogging. Keep it up!

C2CAMDaily said...

Hi,

At the moment I am using a classic version and would like to switch to your amazing design 5.
I am having some difficulty having the results show.
I want use your design 5, i followed your instructions including adding the CSS manually, but as i run a search it comes up with a page with no results.

Also it's an adsense GCS.

My website is http://www.c2camdaily.com

Regards C2CAMDaily

realy an awesome tuto. thanks man