Advertisements

How To Show Only The Title Of Posts For Searches, Archives And Labels

Posted by Lasantha Bandara on June 8th, 2009 File Under : change template, html, labels6 Comments

If you use this hack, when users will click on Archives, search or labels, they will see only the titles of the post, this will decrease the loading time of your template.Follow below steps to do it.

1.Login to your blogger dashboard--> layout- -> Edit HTML

2.Click on "Expand Widget Templates"

3.Scroll down to where you see this:


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

4.Now Replace above line with below code.


<!--ARCHIVE-TITLES-STARTS--><b:if cond='data:blog.homepageUrl !=data:blog.url'><b:if cond='data:blog.pageType != "item"'><a expr:href='data:post.url'><li></li><data:post.title/></a><br/><br/><b:else/><b:include data='post' name='post'/></b:if><b:else/><b:include data='post' name='post'/></b:if><!--ARCHIVE-TITLES-STOPS-->

5.Now save your template and you are done.

File Under : change template, html, labels

6 Responses to “How To Show Only The Title Of Posts For Searches, Archives And Labels”

  1. KAMEHA says:

    Yes ... work fine thank you so much :)

  2. Dweapons says:

    thanks dear good post, i add code in my blog its working

  3. Mido says:

    thanks, nice hack

  4. Varinder Pal Singh says:

    Hi Nice Hack.
    Thanks

    Please tell me how to this type of comment box in my blog.

    Waiting for your reply.

  5. marky says:

    thank you so much.. it works to my blog...

  6. Steve says:

    Used this on my site and works awesome. Been looking for this functionality for months now; SO glad to have found it. THANK YOU!

Leave a Reply