How do I make the categories closed by default?

This topic has 7 replies, 3 voices, and was last updated 1 years, 12 months ago ago by Sadikul Islam

  • Avatar: Sadikul Islam
    Sadikul Islam
    Participant
    April 27, 2022 at 19:02

    How do I make the categories on the sidebar closed by default on the shop page??

    See the screenshot on the private content area.

    Please, contact administrator
    for this information.
    6 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 27, 2022 at 19:51

    Hello,

    Go to Theme Options > WooCommerce > Shop elements > Categories > disable option “Open Product Categories Widget By Default”.

    Regards

    Avatar: Sadikul Islam
    Sadikul Islam
    Participant
    April 27, 2022 at 20:11

    Thanks
    Is there any option to make that dropdown icon comes before the text? and is it possible to change the dropdown icon?

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 28, 2022 at 07:17

    Hello,

    Could you provide a screenshot and URL of your site?

    Regards

    Avatar: Sadikul Islam
    Sadikul Islam
    Participant
    April 28, 2022 at 09:28

    See the screenshot in the private content

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 28, 2022 at 15:46

    1/
    move it on left side

    .widget_product_categories.sidebar-widget ul .open-this, .sidebar-widget ul .open-this, .widget_product_categories.sidebar-widget ul .caret-icon, .sidebar-widget ul .caret-icon {
        position: static;
        float: left;
        text-align: left;
        justify-content: flex-start;
    }

    2/ change default icon (for example +/-)

    .widget_product_categories.sidebar-widget ul .open-this:before, .sidebar-widget ul .open-this:before, .widget_product_categories.sidebar-widget ul .caret-icon i:before, .sidebar-widget ul .caret-icon i:before {
        content: "\e910";
    }
    .widget_product_categories.sidebar-widget ul .opened > .open-this:before, .sidebar-widget ul .opened > .open-this:before, .widget_product_categories.sidebar-widget ul .opened > .caret-icon i:before, .sidebar-widget ul .opened > .caret-icon i:before {
        content: '\e912';
    }

    XStore Icons you may find here -> https://xstore.8theme.com/xstore-icons

    Regards

    Avatar: Sadikul Islam
    Sadikul Islam
    Participant
    April 28, 2022 at 18:57

    I will try this, thank you so much for the code.

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

The issue related to '‘How do I make the categories closed by default?’' has been successfully resolved, and the topic is now closed for further responses

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