Wednesday, May 21, 2014

How to list only post title on label pages

To make blogger lightweight, here are steps to list only post titles on label pages.
1. Template => Backup template in case of any failure.
2. Template => Edit HTML
3. Find below line:
<b:include data='post' name='post'/>
4. Replace above line as below:
<!--Label and archive page title only hack-->
<b:if cond='data:blog.searchLabel'>
<h3 class='title-only'><a expr:href='data:post.url'><data:post.title/></a></h3> 
<b:else/> 
<b:if cond='data:blog.pageType == "archive"'> 
<h3 class='title-only'><a expr:href='data:post.url'><data:post.title/></a></h3> 
<b:else/> 
<b:include data='post' name='post'/> 
</b:if> 
</b:if>
5. Save template
6. Now it looks like:

2 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Hello it works for me perfectly
    But i don't want the dates to appear only the post tiles
    thanks

    visit my blogsite:https://jumiaafrica.blogspot.com

    ReplyDelete

Popular Posts