Hide from Category List the date of just one post

Posted in: Newspaper
Post count: 44

Hello,

I’m using the Newspaper with Newsweek theme and I want to hide the date for a single post in the category page list.

I have it working inside the single post with this CSS:
.postid-45076 .entry-date { display: none !important; }

However, on category pages or post lists, the date still shows. I also tried targeting .td-post-date and <span> elements, but it’s not hiding properly there.

I need a solution that:
1. Hides the date only for this post on both the single post and the category/list pages. Also there is a “-” before the date that separates it from Author, I would like to disappear that “-” for that single post.
2. Doesn’t affect other posts.

Could someone guide me on the correct CSS or method for this?

Of course, I don’t want the general setting that disable the dates via newspaper Theme Panel, that will disable for all posts.

Thank you

Post count: 35449

Hi,
You can try something like this:
.td-module-container:has(a[href*="your-article-url"])
.td-post-date {
display: none !important;
}

Change the “your-article-url” with this one https://prnt.sc/DM-Ho34mZVwW from your website link (article title from url)
I hope this will help you!

Post count: 44

Thank you

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.