Hide entry-crumbs in specific category

Posted in: Newspaper
Post count: 364

Hi, is there a way to hide the entry-crumbs from all posts of a specific category?

Post count: 23312

Hello loano1,

Yes, it’s possible if you will use such a custom CSS area and target the specific category by ID and check the results. -> https://forum.tagdiv.com/create-custom-code-using-the-browsers-inspector/

Thanks for your understanding!

Post count: 364

Hi Catalin, thanks for your reply.

.category-x .entry-crumbs{
display: none;
}

To hide it by category id works quite well for regular posts but unfortunately, as soon as I add smartlists within this category, it doesn’t respect this CSS. Any tips on how to do this with smartlists? Thanks in Advance!

Post count: 20688

Hi,

How exactly is the code you are using? That code from above should not work for post page breadcrumbs by category. I could be mistaken.

You could also create a condition in this file maybe
https://www.screencast.com/t/cJAp4adz

Post count: 364

Hi, I used now:

.td-post-template-5 .entry-crumbs{
display: none;
}

It works because I’m using post template 5 for my smartlists. Thanks

Post count: 20688

But that code would be in no relation to the category of the post, unless maybe you use that template for all the posts of the category and nowhere else.

That will remove the breadcrumbs for all the posts that use template 5, not taking into account the category of them. With CSS something like that would not be possible, I can’t think of anything.
The category isn’t specified above the breadcrumbs, that would allow them to be targeted and removed only for certain categories.

You could use the solution in the code with the condition, that would work.

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