Why Category Siblings element shows all categories when there are no siblings?

Posted in: Newspaper
Post count: 2

Hello,

My website has 5 categories and none of them has subcategories. But when I viewed the category template on the front-end, the Category Siblings element just shows every category right below the category title. (I think it should show nothing there because it has no subcategories?)

I have tested by creating a new subcategory for category A, for example. In this case, when I viewed the category A, I saw its single subcategory showing correctly below the category title. But once I checked another one that did not have subcategories, I still saw all 5 categories from the Category Siblings element.

I wonder if it’s a bug? Or do you know if there’s any setting about this?

Regards,
Ekapob

Post count: 35449

Hi ekapobc, this is the way that the Category Siblings was made in our theme, so if you have some subcategories then all those subcategories will be display (only them), but if there are none, then it will be display all categories that you have.
Thank you!

Post count: 76

I’m having the same issue and it’s bothersome and messes up the flow of the site. There needs to be a way to turn this off. If I delete the element on the category page that does not have a subcategory, it deletes it from every page I have the category sibling element added. It’s a bit non-intuitive to have non-replated categories listed on unrelated category pages.

Where can we add CSS to turn this off? I’ve looked in every custom or advanced CSS area and it will affect the whole site vs where I need it (on specific pages).

Thank you.

Post count: 35449

Hi ThrustMedia,
If you want to use css to hide this element from a specific category, the easiest way is to use the id of that category, for example:
.category-368 .tdb_category_sibling_categories{
display: none;
}

The id of the category is 368 and this can be seen in this place – https://i.imgur.com/Hr4pLXS.png
I hope this will help you!

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