Menu Close Menu

Add Awesome Google style search to blogger blog

Google is the best search Engine in the world. Google update there home page in June 2011, New Google homepage with smaller logo and links moved to the top and bottom edges of the browser for a cleaner look, I think this look much better than older look. I'm sure you will have noticed the new Google design as covered in the post Evolving the Google design and experience on the official Google blog. when  see Google Style search box tutorial on I am very happy and add this search bar on my blog. The new search bar has a more modern minimalist look with rounded corners and hover effect. you can create Google Style Search widgets with some HTML, CSS & JQuery Combination. in this tutorial I’ll also show you how to re-create Google style new search button with some simple CSS Codes. I edit this search button with Green color which compatible with my template style sheet. you can also edit button style with your template colors. so Read all steps and make a beautiful Search button. Special thanks for this tutorial goes to Awesome Queness.Com design blog again & again. You Can See Live Demo on this Blog.

Add Google Style Search Bar To Blogger

First we need to edit your blogger template so Always Make a Backup of Your Template Before You Edit Your Template (how to make a template backup.)

1. Go to your blogger Dashboard>> Template >> Proceed press CTRL+Fand  find the following Code. (how to find code using search bar)
2. Paste following code before/above }}></b:skin.
/*Start Css For Google Style Search Box*/
/* div container containing the form */
#searchContainer {

/* Style the search input field. */
#field {
font-family: Source Sans Pro, sans-serif;
background: #fff;
border:solid 1px #d9d9d9;
border-top:solid 1px #c0c0c0;

/* Style the "X" text button next to the search input field */
#delete {
padding:0 10px 0 10px;
font-family: "Lucida Sans", "Lucida Sans Unicode",sans-serif;
background: #fff;
border:solid 1px #d9d9d9;
border-top:solid 1px #c0c0c0;
/* Set default state of "X" and hide it */
#delete #x {
/* Set the hover state of "X" */
#delete #x:hover {
/* Syle the search button. Settings of line-height, font-size, text-indent used to hide submit value in IE */
#submit {
height: 31px;
color: transparent;
background: url( no-repeat #088a4b center;
border: 1px solid green;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
/* Style the search button hover state */
#submit:hover {
background: url( no-repeat center #088a4b;
border: 1px solid green;
/* Clear floats */
.fclear {clear:both}
Note:- In Search Bar Style Sheet you can edit Font Style, Form Width, Form Border, Font Color, Font Size, Search Button Color, Search Buttons Hover Effect and search Button Border, all these editing I highlighted in blue color you can change it which look is better for your blog design if your don’t want edit just leave it same. & paste before ]]></b:skin>.
3. find the following Code. (how to find code using search bar
4. and paste the following code before </head>.
<script src='' type='text/javascript'/>
<script type='text/javascript'>
$().ready(function() {
// if text input field value is not empty show the &quot;X&quot; button
$(&quot;#field&quot;).keyup(function() {
if ($.trim($(&quot;#field&quot;).val()) == &quot;&quot;) {
// on click of &quot;X&quot;, delete input field value and hide &quot;X&quot;
$(&quot;#x&quot;).click(function() {
5. click on preview and check your blog look if all thing is ok click on save and now time to add gadget on blogger sidebar.
6. Go to your blogger Dashboard>> Layout>> and click on add a gadget a new window is popup. in new window scroll down find HTML/JAVASCRIPT when you find this click on plus button and paste this code in your HTML/JAVASCRIPT Text Area

<div id="searchContainer">
<form name="SUYB" action="/search" method="get">
<input type="text" id="field" id="s" name="q"/>
<div id="delete"><span id="x">x</span></div>
<input type="submit" name="submit" id="submit" value="Search" />

& Click Save. your Done! and see your blog new search bar look. Thanks Again to Queness.
The next few months, look for a series of design improvements across all our Tutorials, Widgets, DropDown Menu, Sharing Buttons including Templates & Social Icons Sets. So Subscribe our blog and stay Connected..
if you have any trouble about this tutorial leave your comments and questions below in comment box. Thanks for our post.

"Be the first to express your thoughts" :

  1. This comment has been removed by a blog administrator.

  2. This comment has been removed by a blog administrator.

  3. This comment has been removed by a blog administrator.


Important - Make sure to click the "Subscribe By Email" link below the comment for to be notified of follow up comments and replies.If you use Name/URL don't use keywords as your name. We love to hear from you! Leave us a comment.
To ensure proper display, HTML/XML/JavaScript need to be Encode first using this Encoder Tool Then paste the Encoded code here.