Thứ Bảy, 5 tháng 12, 2009

Limiting Number Of Post Showing In Labels

In Blogger, you can limit the number of posts appearing on the home page, but you cannot do so on the labels page. It looks odd when someone clicks on label and all post from that labels shows up. it makes the web page load slowely as well as visitors find it rubbish.

If you have lots of posts This hack will helps you to limit the number of posts appearing after clicking labels. It will reduce loading time and requires less scrolling by your readers.

In this short tutorial I will show you how to put a limit to the number of posts appearing in labels page.

Login to Blogger
Go To Layout -- > Edit Html
Check the Expand Widget Template

Now Search For
expr:href='data:label.url'
and replace it with the bellow code

expr:href='data:label.url + "?max-results=5"'


Remember That there may be 2-5 instance of expr:href='data:label.url'  replace all of them

Now Save Template . And you Are Done

Explanation Of This Hack
I Have showed 5 post per page
You can change it by just modifying the code max-results=5 to no. of post you want to show up

iBloggerz

0 nhận xét:

Đăng nhận xét

Bạn có ý kiến hay thắc mắc về bài viết --> Hãy để lại nhận xét bên dưới !

Phản hồi của bạn luôn được đánh giá cao. Tôi sẽ cố gắng trả lời sớm nhất có thể.
Nhắc bạn:
1. Vui lòng đừng Spam ! Tôi sẽ xóa ngay lập tức nếu phát hiện.
2. Các bài comment phải nghiêm túc, không dung tục.
3. Nội dung phải liên quan tới chủ đề bài viết.
4. Hãy để lại tên của bạn khi bạn post bài comment, để mình có thể dễ dàng trả lời comment của bạn khi cần.
5.Đối với những thắc mắc không liên quan đến bài viết này, bạn vui lòng để lại câu hỏi ở đây --> PC Help

Thân chào,
Admin

  Sản phẩm mới của KNC