Monday, May 28, 2012

How To : Show Only Titles In Archive Pages and Label Pages in Blogger

This is one great hack that'll let you show only blog titles when you see open a link that displays all posts under one label. You can click on Blogging How Tos in the top menu of my blog. It actually points to a link that displays all posts under the label blogging.

This will help the visitor to have a glance of what different posts are there in that category . Lets see how to do that in step by step.

Step 1. Go to Templates -->Edit HTML


Step 2. Click on Proceed




Step 3. Then click on the  Expand Widget Templates check box. Make sure its checked. Find the following code....


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

Step 4. Replace the above code with the following....


<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>

Done! Now click on any label and you'll be seeing only titles of your blogs.


Thanks to Simple Blogger Tips for showing me this.

11 comments:

  1. outdated. 'Expand widgets' is not there any more, no more than the code line to be replaced.

    ReplyDelete
  2. It worked exactly what I was expecting.... Implemented in my blog www.arrahman-songs.com

    ReplyDelete
  3. This worked however, it then changed my About me page to have only a header and no text. Can someone people tell me how I can have the titles for my pages with labels listed on there pages but not other pages?

    ReplyDelete
  4. thanks for your information please upload full details job alert

    ReplyDelete
  5. thanks for your information it is working in my website thanks again

    ReplyDelete
  6. This comment has been removed by a blog administrator.

    ReplyDelete
  7. Awesome work Guys, So when you need a typeface for your work then use this;

    Royalty Free Fonts

    ReplyDelete
  8. This comment has been removed by the author.

    ReplyDelete