8/16/2009

Blogger Tips: Showing Post Date on Every Post

As we all know, Blogger’s default templates only show a single date for every post that was posted that day. Some readers will find it convenient to have that quick glance at the date on each post, but some will not even notice. This tips is definitely handy if you plan to use a calendar icon as your post date, since the timestamp can be modified.

If you follow and try my previous tips : Change Post Date Become Calendar Icon, using the "<data:post.dateHeader/>" you will get some calendar icon "blank" (no post date in it) for posts within same date.

This is because in default template, Blogger only show a single date for every post that was posted in that day. How to change it so we can show the post date on every post we have ?

Here are the steps to follow :

1. Follow the instruction to change your post date become calendar icon first. If you haven't do this, feel free to read my previous post about that: Change Post Date Become Calendar Icon.

2. Change the <data:post.dateHeader/> with <data:post.timestamp/> like this section:
<div class='post-date'><div class='warnaCoklatPutih'><script>UbahTanggal('<data:post.timestamp/>');</script></div></div>

3. There is no need more changes in your previous javascript code "UbahTanggal". It still runs well for this changes.

4. Make sure you already change the timestamps setting of your blogger template into "mm/dd/yyyy" or "mm/dd/yyyy hh:mm:ss am/pm".

5. Aware for other existence of your <data:post.timestamp/>. If you don't want to show the timestamps anywhere else, just delete that code from your xml template. (Find and delete it).

6. Save your editting, and see the result, is it working? :)

Good Luck ............

Related post :

0 comments:

Post a Comment

 

My Blog List

Site Info

All about my activities, thoughts, inspiration, ideas, and everything that happened around me. "The Way I see It"

Text

Hary Dot Com Copyright © 2010 BlackWood is Designed by Hary Purnomo for Free Blogger Template