Limiting posts from labels page

To keep Visitor many customization in template are needed.One customization goes to label.This tutorial is asked by my blog reader.I have not disclose his name because of his request.You also can ask to my by contacting us.I really appreciate him for asking question.lets go to matter.

But why to remove number of post in label page.Logically it is because of visitor.If you have team blog there will be thousands of post in a label too.This will take too many time to load it.Making the page over loading may keep out of your visitor thus it is essential but if you are okay the tutorial is not for you.

We also can reduce the load time by Showing only post titles in label page.But the visitor asked we want to show some description and he wanted to to limit the number in post in label  page.

I.Limiting the number of post in label page.

It is very easy.You can do it just by editing some CSS code.lets do it.

  1. Go to blogger.com(You will be in Blogger Dashboard)
  2. Click on Design or Template
  3. Click on Edit html.
  4. Tick on expand widget(It is necessary)
  5. Find this code
    expr:href='data:label.url'
  6. Replace step I no.5 with following code.
    expr:href='data:label.url + "?max-results=5"'
  7. If you find more code  of step 5 replace the code.

II.For Label Menu Tabs.

If you use the label link you have to replace the link.

  1. The Label Link Usually looks like this.
    http://BlogName.blogspot.com/search/label/YOURLABEL
  2. Replace the code like this
    http://BLOGNAME.blogspot.com/search/label/YOURLABEL?max-results=15
  3. You can change max-result=15 to your choice.
  4. Your blog will load faster.Byeeee with cheers

Subscribe At free
Thank you for visiting FacebookSinker.blogspot.com. Please don't miss any of the updates by subscribing to our RSS feed or email updates.

No comments:

Post a Comment

 
back to top