How to display the date of post in the same day

Thursday, October 15, 2009

blogger 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:

 

  1. Please log in to blogger with your ID
  2. Click Layout
  3. Click Edit HTML tab
  4. Check the small box next to the text “Expand Widget Template"

    expand-template-widget

  5. Find this code :

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

  6. Remove the code and replace with this one:

        

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

  7. Click "SAVE TEMPLATE".
  8. Done

Now, all of your posts in the same day will include the date. It’s easy, isn’t it?

 

Credit: template novo blogger

0 comments: