Site logo

Archived topic

Remove date and time from comments

13 replies · Started by Amol Chavan on November 27, 2020

Viewing posts 1–14 of 14

Hello I tried below code which i found in this forum but it didn't removed the Date and time from comments and comments reply. Pls help

.comment-metadata > a {
display: none;
}

.comment-metadata .reply {
font-size: 0;
}
.comment-metadata .reply a {
font-size: 14px;
}

Hi there,

Any chance you can link us to the site in question?

You can use the private information field.

Let me know :)

Hi Amol,

Try this

.entry-meta.comment-metadata {
    display: none;
}

Thanks Baz!

That CSS should work :)

Leo and Baz, It's not working.

No problem :)

What's the solution then? The code which you guys provided it's not working.

That code works for me.

I also visited your website, and added the same code in the chrome inspector tool, and the date/time comments disappeared from your website.

Maybe try adding it to the end of your stylesheet, or clear your cache?

No I tried it. How to add it to the end of the stylesheet. Does that mean add code at the bottom\last in the Additional CSS section? If Yes, then I have already added there.

You could try adding '!important' e.g.

.entry-meta.comment-metadata {
    display: none!important;
}

I still think the original code works, so there must be some caching isssue or CSS conflict somewhere.

Hi there,

in your CSS you have an additional closing } that needs removing - i have commented below:

} <---- remove this bracket
/* remoeve date and Time */
.entry-meta.comment-metadata {
    display: none!important;
}

Superb, David. That's a good catch. It's working fine. Thanks for this.

Glad to hear that

This archived topic is closed to new replies.