How To Show Dates On The Same Day Posting

By default, the date on the post that was published on the same day, will not be displayed. This becomes a problem if you use a template that has a background in view postnya date. Templates will be looking bad because there will be an empty distance between every post published on the same day tersebut. So how to fix it?

It is easy, you just need to insert some html code on the template you use. First you have to login to your blog account, go to EDIT HTML TAB and then provide a check on the Expand Widget Template. (Do not forget to click download the complete template for backing-up your template, just to prepare if there are an errors in the code change later)

Download complete template 
  • Find this code below:

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

  • Change that with this code:

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

  • You can preview it first.
  • If date on the same day post are visible now, you can save your template.
  • Done.

comment 0 Comments:

Posting Komentar

Delete this element to display blogger navbar

 
© 2010 Knowing Zone is proudly powered by Blogger