ADVERTISEMENTS
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.
Now find ( using CTRL+F) below code in the template:
And REPLACE that line with this code:
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.
Now find ( using CTRL+F) below 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"'>
<a expr:href='data:post.url'>
<li></li><data:post.title/></a><br/><br/>
<b:else/>
<b:include data='post' name='post'/>
</b:if>
<b:else/>
<b:include data='post' name='post'/>
</b:if>
<!--ARCHIVE-TITLES-STOPS-->
0 comments