How can I put widget only to a sub category with products.

This topic has 8 replies, 2 voices, and was last updated 15 minutes ago ago by Jack Richardson

  • Avatar: shahar klamka
    shahar klamka
    Participant
    November 12, 2025 at 09:06

    I want to put a widget only when a category has products.
    We have many main categories and sub-categories.

    In the end, they come to a subcategory page with products.
    I want only that when there is a product, it will be a widget.

    I attached 2 images

    How can i do it?

    Please, contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    7 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    November 12, 2025 at 10:12

    Hello @shahar klamka,

    Such an implementation is not possible without creating custom conditions or using custom code workarounds. You can use the Spotlight Categories widget, for example, so that the category items are displayed based on the current query. However, if you have a category archive page that includes subcategories, those subcategories will also be displayed in the widget.

    If you could describe your main idea in more detail, including the URLs of the relevant categories and any other necessary information, we would be happy to suggest alternative solutions if available and the previous solution we suggested is not suitable for your need yet.

    Best regards,
    Jack Richardson
    8Theme Team

    Avatar: shahar klamka
    shahar klamka
    Participant
    November 12, 2025 at 17:42

    I think that maybe I didn’t explain well.
    Please look at the screenshot. I meant a widget. So that there will be a sidebar.

    Files is visible for topic creator and
    support staff only.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    November 12, 2025 at 20:56

    Hello @shahar klamka,

    Unfortunately, there is no conditional widget or sidebar area available to display a category widget only under specific conditions. Widgets placed in the sidebar can only be shown consistently on certain pages.

    If you would like to display specific widgets based on custom conditions, please submit a request for additional customization at http://8theme.com/contact-us, as this type of request falls outside the scope of our basic support.

    Best regards,
    Jack Richardson
    The 8Theme Team

    Avatar: shahar klamka
    shahar klamka
    Participant
    November 13, 2025 at 19:20

    I explained what i meant. You didnt follow it.

    I will try to explain again.

    I want that if a sub category has only products – The page will be with a left sidebar(where widget are usually there)

    Can you tell me how to make all sub-categories with only products to have it?

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    November 13, 2025 at 20:52

    Hello @shahar klamka,

    We now understand your request. It is possible to configure only the following settings: https://gyazo.com/b138a288512cd21a999d7b0c40ff5de0. However, if you would like to modify subcategory pages, this will require additional customization, as it is beyond the default configuration of WooCommerce and our theme.

    Thank you for your understanding.

    Best regards,
    Jack Richardson
    The 8Theme Team

    Avatar: shahar klamka
    shahar klamka
    Participant
    December 3, 2025 at 08:23

    So there is no option to put the sidebar ONLY on the product archive?

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    December 3, 2025 at 10:25

    Hello @shahar klamka,

    If you would like to display the sidebar only for specific categories while keeping it disabled on the main shop page and other categories, you can either create a second product archive template with multiple category conditions so that the template is applied accordingly (see: https://prnt.sc/vK9nXRsncC4I), or use an alternative approach by creating an additional template and setting exclusion conditions for the main shop page and selected parent categories. In this case, the sidebar will be displayed for all other categories.

    Best regards,
    Jack Richardson
    8Theme Team

  • Viewing 8 results - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.