Hide date from particular category in post template- Style 5

Posted in: Newspaper
Post count: 21

Hi,
I am using Style 5 as default post template. I want to hide date from specific category. Please help.
Thanks!

Post count: 20688

Hi,

You could hide the date on the posts from that specific category like this
https://www.screencast.com/t/i6BoiL3t6QcQ
You just need to use your own category in the code and it should work properly for you. The code will remove the date (and that line before it ) from the posts that are part of that category only

.single .category-gadgets .td-author-line,
.single .category-gadgets .td-post-date {
display: none;
}

Like this for example – https://www.screencast.com/t/QfMMcDddmH2Y

Thanks

Post count: 39

Tried this but it doesn’t work. I’m trying to hide the author name and date from all posts in the featured-events category. didgeproject.com/events

Post count: 20688

Hi,

The code provided above is for removing the date for the posts that are in a specific category, on the post page only. I don’t understand exactly where you want to hide these elements, on the page provided or for the posts in that category. The posts have only an author name at the moment, there is no date
https://www.screencast.com/t/0dBfQfGGd1WA
If you want to hide the author name on those posts try this code
https://www.screencast.com/t/pRqrbKNGRQ0

.single .category-featured-events .td-post-author-name {
display: none;
}

Thanks

Post count: 20

hello,

I have manage to hide date on post page for specific category.


.single .category-live-cameras .td-post-date {
display: none;
}

However I wasn’t able to hide date from category page.
http://www.kefaloniapress.gr/category/live-cameras/

could you please help us?

Post count: 20688

Hi,

The code would be like this, to remove the dates on the actual category page
https://www.screencast.com/t/8ajh9zoIZni

.category-live-cameras .td-post-date {
display:none;
}

Thanks

Post count: 20

thank you for your time! It worked!

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