How to hide Author box for some categories only?

Posted in: Newspaper
Post count: 494

Hi, how could I hide the Author box on some categories only (all devices)?
FYI, I already have this code in Custom code > Custom CSS
.category-NAME .td-module-meta-info {
display: none;
}

And this one for Mobile Custom CSS
.single .category-NAME .td-module-meta-info{
display:none;
}

Thanks for your help

Post count: 23312

Hello,

Please refer to the following topic here -> https://forum.tagdiv.com/topic/hide-author-from-particular-category-in-post-template/

Thanks.

Post count: 494

Hi Catalin,

I had a look at the topic but I’m not sure to fully understand your reply.

1/ I don’t know which template number I use. How can I find that? Does it matter?

2/ I don’t get how I can hide it for some categories and not for some other ones…?

Thanks

Post count: 23312

Hello meri,

The template number used by you can find it if you will inspect you setup page or also, you can know what kind of template you are using if you will check your Theme panel. Also, notice that you should add some if statements to hide the author for specific categories, using the is_category function by category id or category slug, like as in the above example. Notice that is not a simple task and if you are not aware of the steps which are needed to take in this case, please consider hiring a freelancer/developer to help you because we cannot do this for you, sorry!

Thanks for the message!

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