Tutorials, tips and tricks about Blogger

04 Nov

Hide the date on Blogger’s comments

4 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

4 Comments, leave a reply · Feed · Trackback URI
  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. Thanks,, It helped me

Reply

Thank you for your comment! If it contains links, your comment will be moderated. Please, don't spam :)

Tutorials, tips and tricks about Blogger