Wednesday, November 26, 2008

Display Only Titles on Label Page

Sometimes We Just Want Our Posts to be displayed, as someone click on a label, But do we really want our complete posts to be displayed on single page. This is How it is, all realted posts are completely displayed. It creates to major problems:-
1) Page become heavy and takes time to load when label has 20 post related to it.
2) Visitors are not able to read all the titles, they may need to read.
3) Most Important. You may loose your Click. When visitors found all post on single page.

Step1

Search for the following code in your Template.


<b:include data='post' name='post'/>

Step 2

Replace the above code from step 1 with the follow lines of code.



<b:if cond='data:blog.homepageUrl
!= data:blog.url'>
<b:if cond='data:blog.pageType != "item"'>
<h3 class='post-title'><a expr:href='data:post.url'><data:post.title/></a></h3>
<b:else/>
<b:include data='post' name='post'/>
</b:if>
<b:else/>
<b:include data='post' name='post'/>
</b:if>

Step 3

Save you Template. If you liked this post then please leave a comment
on us or Subscribe to us.

Hope you have a Good day.

No comments:

Post a Comment