Hiding the date only on specific blog posts

Hi!. I’d like to hide the date of specific blog posts, but I edit them with the built-in editor of WordPress, so I guess I must use the global CSS way. The following code is working well for all the posts:

.entry-date{
  display:none;
}

So any idea about how to apply it to a specific blog post only?

Thank you!! :smiley:

Hi There,

You can try with this custom CSS:

body.postid-123 .entry-date,
body.postid-456 .entry-date {
display: none;
}

The 123, 456 numbers are the post IDs.

Regards!

It works perfect. Thank you very much!! :slight_smile:

Glad we were able to help :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.