You can see default a simple search bar gadget in Blogger.But it's a little bored.And it's kinda ugly because it's not responsive.So we've brought you a simple search box.This will make it easier for your site visitors.It is also best to put this on the top section of your site.
You can see a default search bar gadget in Blogger.But it's a little bored.And it's kinda ugly because it's not responsive.So we've brought you a simple search box.This will make it easier for your site visitors.It is also best to put this on the top section of your site.
1. First go to your blogger dashboard.
2. Now go Layout tab and click Add a gadget.
3. Then select HTML / Javascript and paste below code in content section.
4 Finally save your gadget.
Code
How to Add a Simple Search to Your Blogger Blog.
1. First go to your blogger dashboard.
2. Now go Layout tab and click Add a gadget.
3. Then select HTML / Javascript and paste below code in content section.
4 Finally save your gadget.
Code
[<style>So you know about How to Add a Simple Search to Your Blogger Blog, Hope you like the post, don’t forget to share it with your friends and leave a comment below if you are facing any problem at any step in the method discussed above.Thank you
#search-box {
position: relative;
width: 100%;
margin: 0;
}
#search-form
{
height: 40px;
border: 1px solid #999;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
background-color: #fff;
overflow: hidden;
}
#search-text
{
font-size: 14px;
color: #ddd;
border-width: 0;
background: transparent;
}
#search-box input[type="text"]
{
width: 90%;
padding: 11px 0 12px 1em;
color: #333;
outline: none;
}
#search-button {
position: absolute;
top: 0;
right: 0;
height: 42px;
width: 80px;
font-size: 14px;
color: #fff;
text-align: center;
line-height: 42px;
border-width: 0;
background-color:#0000ff;
-webkit-border-radius: 0px 5px 5px 0px;
-moz-border-radius: 0px 5px 5px 0px;
border-radius: 0px 5px 5px 0px;
cursor: pointer;
}
</style>
<div id='search-box'>
<form action='/search' id='search-form'
method='get' target='_top'>
<input id='search-text' name='q'
placeholder='Search' type='text'/>
<button id='search-button'
type='submit'>
<span>Search</span>
</button>
</form>
</div>]
COMMENTS