Friday, October 21, 2011

How to display only post titles when clicking on a label

I don't get why Blogger doesn't simply list all the posts when clicking on a label's name instead of listing all posts AND their contents. It becomes crowded so fast and you can't see anything!

So I was wondering if there was a way to change this and have it that
when you click on a label, only the post title shows up.


I found this:

http://www.little-tips.info/2011/07/how-to-show-post-titles-only-in-blogger.html

exactly what I'm looking for!!


And here is what it instructs you to do:

  • Click Design*
  • Go to Edit HTML*
  • Check the Expand Widget Templates*
  • Search for the code below:
                  <b:include data='post' name='post'/
  • REPLACE it with this 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>

    • Save your template
    • Test it by reopening your blog and clicking on a label

    As simple as that!! http://www.emocutez.com


    No comments:

    Post a Comment