Tutorials, tips and tricks about Blogger

04 Nov

Hide the date on Blogger’s comments

7 Comments | by in Design, Tips and Tricks | 2009

Español Português

This option is not on Blogger’s options, but it can be done through CSS.

  1. Go to the “Layout” tab, also called “Design” from the desktop, and then go to “Edit HTML”. After this, check the “Expand widgets template” box.
  2. Search for the following code:
  3. ]]></b:skin>
  4. And just before write the following:
  5. .comment-timestamp {
    display: none;
    visibility: hiden;
    }
  6. This will hide comment’s date, but will also hide the icon that allow us deleting a comment as blog’s owner. If you want this icon to keep alive, then search for this code:
  7. <dd class='comment-footer'>
    <span class='comment-timestamp'>
    <a expr:href='"#comment-" + data:comment.id' title='comment permalink'>
    <data:comment.timestamp/>
    </a>
    <b:include data='comment' name='commentDeleteIcon'/>
    </span>
    </dd>

    And replace it with the following:

    <dd class='comment-footer'>
    <span class='comment-timestamp'>
    <a expr:href='"#comment-" + data:comment.id' title='comment permalink'>
    <data:comment.timestamp/>
    </a>
    </span>
    <b:include data='comment' name='commentDeleteIcon'/>
    </dd>
  8. Then save and that’s it.

Lee este artículo en español: Ocultar la fecha en los comentarios de Blogger.

Comments

7 Comments, leave a reply · Feed
  1. thank you very much for this excellent tips, i really appreciate it. I was searching for it desperately.

  2. Thanks. Very helpful… Need to remove the date but show the time.

  3. ratnakar July 18, 2011

    Thanks,, It helped me

  4. Hi,
    This code don’t hide my comments dates on Blogger.
    What can i try ?
    Thanks

  5. I tried the above but the date/time still shows. Can you please confirm or show exactly what you mean by ‘And just before write the following’.. Does this mean above this script or what? This is how it looks on mine: ..Thanks

    .comment-timestamp {
    display: none;
    visibility: hiden;
    }
    ]]>

  6. Wen Aulia Gayo July 2, 2013

    interesting tips I should to try and make sure it is functioning properly, how its work fine for a blog. thank you

Reply

You must be logged in to post a comment.

Tutorials, tips and tricks about Blogger