showing date for posts has the same post date

in Blogger ,sometime you meet this trouble : if there are more than one article published in one day ,Blogger only show the post-date of latest article in that day and not show for older ones .
To show post-date for all posts ,even they are published in the same day ,you can follow these steps :
Go to blogger and login ---> go to Edit HTML --> checked
find this code :

<b:if cond='data:post.dateHeader'>
<h2 class='date-header'><data:post.dateHeader/></h2>
</b:if>

and replace it with the code bellow :

<b:if cond='data:post.dateHeader'>
<script>var sameDay = '<data:post.dateHeader/>';</script>
<h2 class='date-header'><data:post.dateHeader/></h2>
<b:else/>
<h2 class='date-header'>
<script>document.write(sameDay);</script>
</h2>
</b:if>

Ok,you are done ! check it out !
huy signature

Share this post

Advertisement

0 comments:

Post a Comment