• Resolved tashalong

    (@tashalong)


    i want my sidebar to show only categories not sub categroies, the list is too long at the present moment

    help please

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @tashalong,

    We’ll be happy to help! Reviewing your site, I see you’re using the Product Categories List. One option to hide the subcategories is first having them displayed in hierarchy mode, like this:

    Direct link to the image: https://snipboard.io/i2xCuv.jpg

    Then you can hide them through CSS, like this:

    /* Hide subcategories from product list on the sidebar | 8653780-zen OP */
    .widget-area ul.wc-block-product-categories-list.wc-block-product-categories-list--depth-1 {
    display: none;
    }

    You can apply it by following these steps:

    1. Go to your WordPress.com dashboard and navigate to Appearance > Customize.
    2. In the Customizer, select the Additional CSS option.
    3. Add the CSS provided here.?
    4. Click the “Publish” button to save the changes.

    If you encounter any difficulties or have any further questions, please don’t hesitate to let me know. I’ll be glad to assist you further.

    On the other hand, the option for “Only show children of current category” will only show the child categories of the page you’re currently on but it won’t show all the parent categories, and it’ll show the entire list on the main shop page, so it doesn’t quite achieve the desired effect you’re looking for.

    Cheers!
    -OP

    Thread Starter tashalong

    (@tashalong)

    superstar! that worked perfectly. thank you

    Hello @tashalong,

    Glad to know that we were able to help. I will mark this thread as resolved. Should you have further inquiries, kindly create a new topic here.

    Meanwhile, if it isn’t too much to ask for – would you mind leaving us a review here? It only takes a couple of minutes but helps us tremendously. It would mean so much to us and would go a long way.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.