Monday, 27 January 2014

REDUCE NUMBER OF POSTS DISPLAYED IN LABELS MENU TAB


Reduce Number Of Posts Displayed In Labels Menu Tab
Too many posts displayed in your Labels menu can definitely slow down your blogsite’s loading time. This happens when you’ve already reached a high number of posts in your blog. The problem is Blogger doesn’t have a feature that allows youto limit the number of posts to be displayed on the list. Fortunately, a blogger named Tito came up with a hack to fix that.
Follow the instructions below to reduce number of posts under a specific label menu tab.
  • Blogger dashboard > Design > Template >Edit HTML.
  • Check Expand Widget Templates box.
  • Using Ctrl+F, search for expr:href=’data:label.url.
  • Not < a expr:href=’data:label.url >
NOTE: There is more than one instance of this throughout the code depending on how many labels you have.
Replace it with the following:
expr:href='data:label.url + &quot;?max-results=5&quot;'
The ‘5’ is the number of posts to be displayed. You can adjust this to any number you want.
  • Save the template.
You should now see only 5 pages listed under that specific label. To see more posts, just click on ‘Older posts’.

No comments:

Post a Comment