Thursday, September 3, 2009

Show Only Titles Of posts In Archive and Lable Page In Blogger

Sometimes for fast navigation we think that only displaying post titles is a good idea.We can Show Titles of post in home pages,Archive pages, Lable pages etc. First i want to Clear that conditional Tags can be used in blogger Also.They are easy to use.You can Display your post in any way by using These conditional tags.There are two Cases.




#Case 1


Login to Blogger>>>Go To LAYOUT>>>Then Click On Edit HTML>>>Check Mark Expand Widgets>>>Press Ctrl+F


And Search

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


To Show titles Only on label or archive page Replace with Below Codes :-

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



After Saving you will see only post titles on clicking Lable Or Archive


#Case 2


Show titles on Lable Or Archive.

Login to Blogger>>>Go To LAYOUT>>>Then Click On Edit HTML>>>Check Mark Expand Widgets>>>Press Ctrl+F


And Search

<data:post.body/>



After finding Replace with:-

<b:if cond='data:blog.pageType == "item"'>
<p><data:post.body/></p>
</b:if>



This will show only post title on all pages of blogger including homepage label and archive pages.


Replace Item With:-

index It will show post title only in archive pages

archive to NOT show in Archive Page

0 comments:

Post a Comment