When you post more than one articles in one day, you will have only one post with its date. It is your last post. That’s not a problem because by default, it will be like that. Blogger cannot display the date of post in the same day.
Anyway, if you are interested in displaying the date of post in all posts, there is a simple hack to display the date of post.
Below are the steps:
- Please log in to blogger with your ID
- Click Layout
- Click Edit HTML tab
- Check the small box next to the text “Expand Widget Template"
- Find this code :
<b:if cond='data:post.dateHeader'>
<h2 class='date-header'><data:post.dateHeader/></h2>
</b:if>
PPost Before “read more”And here is the rest of it
- Remove the code and replace with this one:
<b:if cond='data:post.dateHeader'>
<script>var ultimaFecha = '<data:post.dateHeader/>';</script>
<h2 class='date-header'><data:post.dateHeader/></h2>
<b:else/>
<h2 class='date-header'>
<script>document.write(ultimaFecha);</script>
</h2>
</b:if>
- Click "SAVE TEMPLATE".
- Done.
No comments:
Post a Comment