Hello friends,everyone who are using blogger services and blogging regularly,they face many problems while customize blogging template with different tricks.
Blog template customization is very important thing in blogging world,because it represents your self and user friendly environment in front of visitors.
So,in blogger world customization is very important.It includes font,margin,image,text,SEO,widget and many more topics for customization.
Here i am going to explain you a very important customization which is search box customization.We know that,visitors always love search facility,because whatever you provide is either important for some people or not for others,but search facility is one,which provides flexibility to the visitors to search information as per their wish.
|
image taken from Google owned by depositphotos.com |
Visitors only provide some phrases or keywords and based on that information retrieved.So,this facility is quite important in blogger service,because there are number of posts from which visitor can find anything via this facility.
I have seen many blogs in which whenever you search something from search box,it shows many posts regarding search on the same page and it is quite difficult to read and manage it.Visitor have to scroll it again and again.
So,i give you code to set number of post per page in search box same as you provide navigation in blog.
<div id='search-box'>
<script type='text/javascript'>
function abc()
{
var parent = document.getElementById('search-text').value;
self.location="http://templatenetwork.blogspot.in/
search/label/"+parent+"?max-results=7";
}
</script>
<input id='search-text' placeholder='Search Here...' type='text'/>
<input id='search-button' onclick='abc()' type='button' value='Search'/>
</div>
To apply this code into your search box first go to your blog and click on the Layout-->Add Gadget-->HTML/Javascript and then put above code in this gadget.
That's it but please make sure that in your blog post per page is set to 7 by default.
If you like this post then share with your friends and give reviews in comment.