How To Show Only Post Titles On Archive And Labels Widgets In Blogger?



Showing post titles only on archive and label widgets in blogger instead of with body content helps in making your blog more user friendly as it saves time while searching entire posts under any archive or labels. Follow these steps for showiing post titles only on archive and labels widget:
  • Login to Blogger.
  • Go to Design> Edit HTML
  • Backup your your template.
  • Check the Expand Widget Templates.
  • Look for the code: <b:include data='post' name='post'/>
  • Replace that code with the following code:
<!--http://www.basicsofhacking.com/-->
<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>
<!--http://www.basicsofhacking.com/-->
  • Preview it & then Save Template.
You can see an example here: BASICS OF ETHICAL HACKING

Sharing is Caring

Related Posts

Previous
Next Post »

3 comments

comments
October 3, 2011 at 6:35 PM delete

Hey Friend this trick is good but this trick conflicts with blogger static pages, I got this same method many of websites and I apply this trick to my blog template each and every time I noticed when I apply this code the label page shows title only that's good but the static pages not show any content of entire pages. If you know how this problem will solve then please share your idea......thanks in advance.....

Reply
avatar
October 4, 2011 at 7:22 PM delete

my blog address is channelspk.in now I am not using this trick due to this problem as I mention above.......

Reply
avatar

Thank you for your comment.