Home Forums WoodMart support forum How do I choose to show only selected categories in category header?

How do I choose to show only selected categories in category header?

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #188745

    falseury
    Participant

    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.
    #188781

    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.

    #188807

    falseury
    Participant

    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.

    #188823

    Artem Temos
    Keymaster

    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

    #188827

    falseury
    Participant

    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?

    #188829

    Artem Temos
    Keymaster

    This categories menu can be disabled from Theme Settings. And yes, subcategories will be displayed on hover only.

    #188832

    falseury
    Participant

    Where can I find the setting to disable the menu.

    #188840

    falseury
    Participant

    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

    #188857

    Artem Temos
    Keymaster

    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”.

    #188864

    falseury
    Participant

    That helps. Thanks a lot.

    #188869

    Artem Temos
    Keymaster

    You are welcome!

Viewing 11 posts - 1 through 11 (of 11 total)

The topic ‘How do I choose to show only selected categories in category header?’ is closed to new replies.