Tutorials, tips and tricks about Blogger

04 Nov

Hide the date on Blogger’s comments

1 Comment | by Yondri in Design, Tips and Tricks | 2009

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.

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