How to Limit Number of Post in Blogger Search

,

Hi guys, after a long time now I'm active with my smartpik. This time, smartpik will give you a simple tip to limit the number of posts appear when you are searching in blogger search

This is an easy trick. You have to follow some simple steps. Ok! let's start

First of all, as usual, Open your blog in Blogger go to templates section click on the Edit HTML, Now you can see the cool simple single page blogger code. 

Then search for the search-box form from your blog. And that code looks like the below code.
<form id="searchbox" method="get" action="/search" autocomplete="off">
<input name="q" type="text" size="15" placeholder="Enter keywords here..." />
<input id="button-submit" type="submit" value=" "/>
</form>
After that add the highlighted code into your code.
<form id="searchbox" method="get" action="/search" autocomplete="off">
<input name="q" type="text" size="15" placeholder="Enter keywords here..." />
<input name='max-results' type='hidden' value='7'/>
<input id="button-submit" type="submit" value=" "/>
</form>
The value 7 is the number of posts that shown when anyone searches anything on your page. You can change that into your wish. It is simple editing and it works perfectly.

That's it. Stay tuned for more tips and tricks. Thanks for reading!!!

0 comments:

Post a Comment