Skip to main content

How to add a calendar icon as date header

dateheadericon From this tutorial, you will be able to add your very own calendar icon to your blogger! If you’re going to show the date on every post, why not do it with a little style and make it a little more appealing to viewers? If you want your calendar icon to appear on every post, read Blogspot Vision’s post on how to do that by clicking here to go to the post. Let’s get started but first and foremost, make sure you back-up your existing template, just in case it doesn’t turn out as expected.

Steps to follow:

1. Login to your Blogger dashboard

2. Go to Layout > Edit HTML (Click on “expand widgets” box)

3. Search for the following section code: ]]></b:skin>
and add the following section code below right before it:

.post .date {
    height: 50px;
    width: 45px;
    background: url( no-repeat;
    font: normal 22px Arial;
    color: #666666;
    text-align: center;
    padding: 0px 2px 0 0;
    line-height: 100%;
    float: left;
.post .date span {
    height: 16px;
    display: block;
    font: normal 11px Arial;
    color: #ffffff;
    text-align: center;
    padding-top: 5px;

4. Next, you will need to search for the following section code: <b:if cond='data:post.title'>
and add the following section code below right after it.

<div CLASS='post'>
<script type='text/javascript'>
    var timestamp = &quot;<data:post.timestamp/>&quot;;
    if (timestamp != &#39;&#39;) {
        var timesplit = timestamp.split(&quot;,&quot;);
        var date_yyyy = timesplit[2];
        var timesplit = timesplit[1].split(&quot; &quot;);
        var date_dd = timesplit[2];
        var date_mmm = timesplit[1].substring(0, 3);
<div CLASS='date'>
<span><script type='text/javascript'>document.write(date_mmm);</script></span>
<script type='text/javascript'>document.write(date_dd);</script>
</div> </div>

5. Preview your page before Saving Template, and if all works fine, Save Template.

Note: You might have to adjust the post title margin and padding to fit your style of blog, you can also find free calendar icons in the icons section!

6. Next, you will need to adjust your settings by clicking Settings > Formatting > Timestamp Format, and adjust it to Sunday, August 02, 2009.

calendariconsettings Your done!


  1. wa's happenin yo. site's lookin good

  2. whats up jon jon. appreciate the support bro

  3. I need help! I do this and it works great but I need help! The break between posts gets screwed up with the calendar. Look:

    On my main blog I removed the break between posts but is there a way to keep the break but not mess it up?

    This is my main blog:

  4. hey admin, it looks like you have a break on top and bottom of posts? what youll need to do is modify the padding of:

    .post .date {width: 60px; height: 60px;
    background: url( no-repeat;
    font: normal 22px Arial;
    color: #666666;
    text-align: center;
    padding: 0px 4px 0 0; <-----
    line-height: 100%;
    float: left;

    next, you will also need to modify post titles.

    .post h3 {
    background: url( top left no-repeat;
    font: bold 20px Arial;
    padding: 0px 0px 0px 0px; <------
    margin: 0px 0px 0px 0px; <------

    let me know if this doesn't work, because then youll need to modify your html section.

  5. oh i forgot to mention, your post titles may be slightly different.


    .post h1,.post h2,.post h3,.post h4,.post h5 ... etc

  6. what does it mean when it says "undefined undefined"?

  7. hey Jess, i think you may have an undefined variable. variables are usually font colors, font texts, or colors of your template that is defined in the variable section of your template(right below your head section). to fix that you have to 1. define your variable or 2. add the actual code of color or text.

    for example:
    the code you got off a tutorial page might have--

    font: $blogDescriptionFont;

    you would have to delete the $blogDescriptionFont and replace it with an actual color code, ex. #3b3b3b

  8. hello tried to look it but I can not aparc the calendar on my blog, I created a blog to test the code that is

  9. Help please! I added it but look what it does to my blog:

    Please help ASAP

  10. my pleasure, be sure to check out the icons section for other calendar icons.

  11. On my site I have a calendar, but I can't make it so the image doesn't repeat itself when the date is shared with a more recent post... as in... I would prefer the calendar image disappear on earlier posts if they are all on the same day... any idea how I can do that?

    To see what I am talking about my site is at:

  12. Hi...

    Why after I edited 'Calender Icon' my divider become twice.

    Check my blog at

  13. hey wassini, have you checked your posts? or post body? also make sure to check you main widgets section too

  14. I've been wanting to use this icon for one of my blogs. This works wonders! Thanks a lot :)

  15. Hey i really like your site. i've been wanting to improve the look of my blog but i'm ready for wordpress yet! Question I've added the date but how do I get it to come out on the left side of the post/blog as opposed to on top?

  16. I meant not ready for wordpress!

  17. I have tried today to implement the add calender but it does not work there is still this "date undefiened"

  18. Pengen yang lebih seru ...
    Ayo kunjungi wwwasianbet77com
    Buktikan sendiri ..

    Real Play = Real Money

    - Referal 5 + 1 % ( seumur hidup ) .
    - Cash Back up to 10 % .
    - Bonus Royalty Rewards setiap bulan .

    untuk Informasi lebih jelasnya silahkan hubungi CS kami :
    - YM :
    - EMAIL :
    - WHATSAPP : +63 905 213 7234
    - WECHAT : asianbet_77
    - SMS CENTER : +63 905 209 8162
    - PIN BB : 2B4BB06A / 28339A41

    Salam Admin ,


Post a Comment

Popular posts from this blog

CSS DIV boxes with drop shadows

This example shows how to add a drop shadow style to any container element using CSS. It does this by wrapping the desired content in a DIV with its background color set to a color of the desired color for the shadow. Another DIV is set for your content and is shifted slightly upwards and to the left to expose the shadow. The "master" DIV wraps it all up but is shifted to the right and downwards, returning the entire markup to it's original page position.

IE6 is not compatible with this example, but you can apply conditional HTML to hide the effect in that browser. In contrast, IE7 is compatible with this example for finally updating to proper CSS.

Note: If you will be using an image for your content, you should give ".shadowcontainer" an explicit height, reflecting that of the image's for fixed and set location when viewed.

CSS Code
<![if !IE 6]>
position: relative;
left: 5px; /*Number should match -left shadow depth below*/
top: 5px;…

How To Show The Post Date On Every Post

From this tutorial, you will be able to show the post date on every last one of your posts. 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 tutorial is definitely handy if you plan to use a calendar icon as your post date, since the timestamp can be modified. As always, make sure you download your current existing template just in case it doesn’t turn out as expected.

Steps to follow:
1.Login to your Blogger dashboard.
2. Go to Layout > Edit HTML (click on “expand widgets” box)
3. Now search for the red line of code or similar code:Note: If you can’t seem to find the line in red, try the second section code in blue.<div class='post-feeds'>
<b:loop values='data:posts' var='post'>
<b:if cond='data:post.dateHeader'>
<h2 class='date-header'>