How to hide date from posts of a custom post type?

Posted in: Newspaper
Post count: 39

Hi, how can I select “not” to show (hide) the date on posts of a certain custom post type?

Post count: 18283

Hello !

That will have to be done using css, can you provide a link to your website in order to take a look ?

Thank you !

Post count: 39

Sure,
here it comes.

https://www.childhood-business.de/cb_marken/il-gufo/

It would be great if this might become a feature in the CPT area of the theme panel one day. Why not having an option there to stear such central options in one place?

If you can advise how I can make the date disappear on a page like the one mentioned in my sample link, I will be grateful.

Kind regards, Martin

Post count: 18283

Hello !

Our developers are still working on making the CPT tagDiv Composer compatible so you will be able to fully edit it using composer.

As for your fix, please try this css code: .td-post-date{
display:none;
}

The code must be inserted here: https://www.screencast.com/t/J1Nxw5s5

Let us know the result !

Thank you !

Post count: 39

Hi, thanks for this fix. Looking at the css code I assume that the post date will not displayed anymore on ALL posts, right? But in my case I just need it for the custom post types, not the wordpress regular posts.

The more, I assume that it does not need to be a special Toolset fix. I just use it to create CPTs as any other tool can do so or as it can get done by some manual plugin code.

I would suggest that in the theme panel’s CPT section there should be a selector to decide on CPT by CPT if I want to display the date or not. If this can get integrated in Newspaper – great!

Post count: 18283

Hello !

Please try this code: .single-cb_marken .td-post-date{
display:none;
}

This should go only on: .single-cb_marken

Let me know the result !

Thank you !

Post count: 39

Hi Vlad,

thanks, this helps! To be exact there is still a hypen left, but I could live with that.

It says:

Von Redaktion –

(Like_ From [author name] – [not shown date]”

Kind regards,
Martin

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