How to limit the number of posts on the search page - How are you bloggers, this time Wiendhy will provide a few tips on how to limit the number of posts that appear when searching for an article on the blog search page.
This trick is quite easy, the way it works is the same as in the tutorial Limiting the Number of Posts on the Label Page. Please follow the steps below.
How to limit the number of posts on the search page
1. Open your blog on Blogger> Templates> Open the blog editor template> Search search box markup (according to the template you use)
For example, here I use the search box markup from the Simplify 2 template
2. Then you only need to add the code marked below just below the input tag of the search box
Determine the number 7 from value = '7' with the number of posts you want to display.
3. Save the template and see the results.
Thus tips on how to limit the number of posts on the search page that Wiendhy can provide, hopefully useful
This trick is quite easy, the way it works is the same as in the tutorial Limiting the Number of Posts on the Label Page. Please follow the steps below.
How to limit the number of posts on the search page
1. Open your blog on Blogger> Templates> Open the blog editor template> Search search box markup (according to the template you use)
For example, here I use the search box markup from the Simplify 2 template
<form action='/search' id='search-us' method='get'>
<table>
<tbody>
<tr>
<td class='search-boxy1'>
<input id='search-boxy1' name='q' onblur='if(this.value=='')this.value=this.defaultValue;' onfocus='if(this.value==this.defaultValue)this.value='';' type='text' value='Cari artikel lainnya...'/>
</td>
<td class='search-button1'>
<input id='search-button1' type='submit' value=''/>
</td>
</tr>
</tbody>
</table>
</form>
2. Then you only need to add the code marked below just below the input tag of the search box
<form action='/search' id='search-us' method='get'>
<table>
<tbody>
<tr>
<td class='search-boxy1'>
<input id='search-boxy1' name='q' onblur='if(this.value=='')this.value=this.defaultValue;' onfocus='if(this.value==this.defaultValue)this.value='';' type='text' value='Cari artikel lainnya...'/>
<input name='max-results' type='hidden' value='7'/>
</td>
<td class='search-button1'>
<input id='search-button1' type='submit' value=''/>
</td>
</tr>
</tbody>
</table>
</form>
Determine the number 7 from value = '7' with the number of posts you want to display.
3. Save the template and see the results.
Thus tips on how to limit the number of posts on the search page that Wiendhy can provide, hopefully useful