Show Only Titles In Blog Archives With Dates


Show Only Titles In Blog Archives With Dates


You would have noticed that, visitors, do click on the monthly archive links [like Oct 2008, Dec 2008, etc. in the Blog Archive], in your blog. But if you write a lot, like 20-30 posts in a month, then all the posts will open in the archive page and it will take a lot of time to load that page. This can be very annoying for the visitor, and he/she may simply close your blog in the frustration.
So if you want to keep your visitors happy, then you should better NOT display the content BUT only their titles in the archive results page.

For doing so, follow these steps:
Log in to Blogger
Go to Layout, and click on "Edit HTML" tab.
and mark the tick-box "Expand Widget Templates"
Now find (CTRL+F) this code in the template:


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


And REPLACE that line with this code:


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



If This Post Helps You Then Please Leave Your Comment Below
Thanks For Visiting


Kindly Bookmark this Post using your favorite Bookmarking service:
Facebook Twitter
YOUR ADSENSE CODE GOES HERE

0 comments:

Post a Comment

 

| FreeHub4u © 2009. All Rights Reserved | Template Style by www.freehub4u.blogspot.com | Design by Umair Ali Shah | Back To Top |