How do I choose to show only selected categories in category header?
-
All categories are listed by default, I want to show only selected ones. How do I show it?
Attachments:
You must be
logged in to view attached files.
Hello,
I saw the screenshot you attached.
Unfortunately, There is no option in theme settings to display selected categories on the shop page.
It requires customization and this is beyond our limitations and support policy.
You need to hide them with Custom CSS. You need to add the following Custom CSS in the Global Custom CSS area under Theme Settings >> Custom CSS.
.woodmart-product-categories.has-product-count .cat-item-42 {
display: none;
}
The above code will hide the category whose id is 42.
You need to add the ids of all the categories you want to hide with it.
Best Regards.
Well that is a huge drawback. dont you think it is a problem. For stores which has more than 20 categories, the page will look like mess when viewed upon. I am shocked to see that this is not an option at all. Had I known this before, I would not have had purchased the theme at all. Can you please consider releasing a solution to this? I must be able to decide which categories I want to show on the top to make it work.
Hello,
This part actually displays all categories in the store and it is not like a regular WordPress menu. For such stores as yours, you can hide this particular navigation and put your categories to the header. Also, you can organize them with categories-subcategories hierarchy to free some space.
Kind Regards
so the categories-subcategories will free some space, meaning it will not display the child categories?
and by hiding this navigation, you mean I hide it using CSS you gave me or there is a different option to hide this all together?
This categories menu can be disabled from Theme Settings. And yes, subcategories will be displayed on hover only.
Where can I find the setting to disable the menu.
or if you can tell me which template file in theme this section is being called from so I can go ahead and modify it
You can customize it in the file /inc/integrations/woocommerce/template-tags.php or disable in Theme Settings -> Shop -> Sidebar & Page title -> “Categories in page title”.
That helps. Thanks a lot.
The topic ‘How do I choose to show only selected categories in category header?’ is closed to new replies.