Hide Subcategories

Posted in: Newspaper
Post count: 95

Hello,

I am using the cloud template Category Template 32 – Life News PRO for my category pages and this layout displays subcategories tags. However, subcategories are showing for the categories that do not have a subcategory.

For example, these category pages do not have a subcategory but yet all these subcategories are showing up. How can I hide subcategories for the categories that do not have them.

https://forevermogul.com/entrepreneur
https://forevermogul.com/leadership

Post count: 21065

Hello!

Yes, you are right because this element called “category siblings” display the subcategories but also related categories when that category has no subcategories. There is another alternative element called “subcategories”, but has another design.
Other option is to use different templates for your categories. The ones which has subcategories you can use that element “category siblings” and for the rest of them, you can duplicate the template and delete this element or use another new template.
Check this topic: https://forum.tagdiv.com/topic/different-logo-in-categorypage/ ; Here I explained step by step how you can duplicate a template.

Thank you!

Post count: 95

Can this be hidden by some custom code on the category pages that do not have subcategories?

Post count: 21065

Hello!

This can be a complex procedure which I do not recommend and this will require custom work which is not covered by the support team.

Thank you!

Post count: 95

Ok I will leave it.

Last thing on this template. Is it possible to add a background to each of the category headers. So instead of the grey background.

Post count: 21065

Hello!

Yes, you can change it like this: https://www.screencast.com/t/lfeADzIsf3
In order to have different elements inside for every category, you need to have different template for each category.
If you want the same style/template of your categories, then you can duplicate a template/layout for every category to have different template, make the specific changes and assign it to that category.
Check this topic: https://forum.tagdiv.com/topic/different-logo-in-categorypage/ ; Here I explained step by step how you can duplicate a template

Thank you!

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