Sub-categeories
-
Hello. Is there a way to hide sub-categories in the sidebar from homepage? I’ve tried: visibility > Hide if > category > is > xxx (the category name)
but it doesn’t seem working.
Thank you so much!The blog I need help with is: (visible only to logged in users)
-
Hi –
This is most likely how your theme operates. Please confirm for me which site you’re working on and which categories you’d like hidden. Then I can take a closer look.
-
hi,
If you have CSS customization, you can add this code to hide the subcategories
ul.children {
display: none;
} -
Hi there,
Are you speaking of the category widget on your site? That widget always shows all categories with published posts on your site, and you cannot cause specific categories not to show in that widget.
If you edit the widget in the Customizer you can disable the “Show hierarchy” option that will have all the categories display as a main list without any sub-items.
It might also be possible to do using CSS. However, I’d not recommend the CSS code that @kosiew provided above, as that will affect ALL unordered lists on your site, not just the categories widget. You also cannot use custom CSS on your free plan site, so unless you want to upgrade to Premium there is no way to completely hide those subcategories.
- The topic ‘Sub-categeories’ is closed to new replies.