Sure, for example, I want to hide the date of the posts in this category (both in category and post view): https://nonewsmagazine.com/category/milano-food-drink/categorie-ristoranti/aperitivo/
-
This reply was modified 3 years by
signorini.
Hi,
To remove the date from the category you can use this custom css:
.category-3326 .td-post-date, .category-3326 .td-post-author-name span {
display: none;
}
and for posts, you can use this code
.category-aperitivo .td-post-date, .category-aperitivo .td-post-author-name .td-author-line{
display: none;
}
The css needs to be set in the theme panel > custom code> cutom css.
I hope this will help you!
Hi,
I checked the website and seems that it works now – https://i.imgur.com/8F76Tde.jpg – https://i.imgur.com/4xDjIyJ.png also on posts from that category – https://i.imgur.com/TiNd0lq.jpg other posts that are not part from that category – https://i.imgur.com/A4Forpe.jpg
Thank you!
Yes, right. Probably when I checked the change it hadn’t propagated yet.
Thanks.
Therefore, to do this modification, I have to put the custom code for each category and/or post I want to modify the view.
I guess, I get the category “code” (in our case, .category-3326) by inspecting the <body> of every category.