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
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!
Can this be hidden by some custom code on the category pages that do not have subcategories?
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.
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!