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

Posted by Harwinder Kumar at 6/08/2011 Posted in:

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:
<b:if cond='data:blog.searchLabel'>
<h3 class='title-only'><a expr:href='data:post.url'><data:post.title/></a></h3>
<b:if cond='data:blog.pageType == "archive"'>
<h3 class='title-only'><a expr:href='data:post.url'><data:post.title/></a></h3>
<b:include data='post' name='post'/>
  • Preview it & then Save Template.
You can see an example here: BASICS OF ETHICAL HACKING
Hope You Liked It. Receive Latest Posts Directly To Your Email
Get Free Updates:
Click On The Confirmation Link Sent To Your Inbox Or Spam

3 comments so far:

Admin said on 10/03/2011 6:35 PM:

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

Harwinder said on 10/04/2011 11:45 AM:

ur blog name?

Admin said on 10/04/2011 7:22 PM:

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


We love to hear from you! Leave us a comment:

© 2014 Learn The Basics Of Ethical Hacking About | Site Map | Privacy Policy | Contact