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/-->
<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.
3 comments
commentsHey 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.....
Replyur blog name?
Replymy blog address is channelspk.in now I am not using this trick due to this problem as I mention above.......
ReplyThank you for your comment.