Legenda+Woocommerce shop page - by Fabio

This topic has 6 replies, 2 voices, and was last updated 6 years, 10 months ago ago by Rose Tyler

  • Avatar: fabio_vito
    Fabio
    Participant
    February 15, 2018 at 14:35

    Dear Support,

    Woocommerce gives the possibility to setup a shop page where all categories are displayed. I identified the shop page for my website (/shop/) however I would like to ask the following:

    1) is there the possibility to hide the default widgets from this page only?
    2) if yes, could I replace the widget column with an additional categories’ column?

    I have widgets such as price, color filters which do not make much sense if in the shop page I have only the categories displayed.

    Please let me know if I can do something about it.

    Best regards.

    F.

    5 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 15, 2018 at 14:57

    Hello,

    You may change “Shop page display” settings in Customize > WooCommerce > Product Catalog. Widgets that are shown in the sidebar on shop page, and pages that inherit layout of Shop, you may change in Appearance > Widgets > Shop sidebar.
    To disable the sidebar only on shop page, you may use this custom css code:

    .post-type-archive .sidebar {
        display:  none;
    }
    .post-type-archive .content {
        width:  100%;
        margin-left:  0;
    }

    Regards

    Avatar: fabio_vito
    Fabio
    Participant
    February 17, 2018 at 22:18

    Dear Rose,

    Thank you for the css code. Shall I insert it into the custom.css file part of the main theme?

    I’ve tried to do so in my local machine, however i do not see any effect…

    Please let me know.

    F.

    Avatar: fabio_vito
    Fabio
    Participant
    February 17, 2018 at 22:41

    I fixed it, no worries.

    Thanks.

    F.

    Avatar: fabio_vito
    Fabio
    Participant
    February 18, 2018 at 13:22

    Hi Rose,

    I thought to have fixed it by adding to the css code “important!” (in the custom.css file) however, I realized that no changes are visible if I am logged out from wordpress.

    Could you please tell me if I am doing something wrong?

    F.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 19, 2018 at 11:11

    Hello,

    Please change the previous code to this one:

    .post-type-archive .sidebar, .page-id-6 .sidebar {
        display:  none !important;
    }
    .post-type-archive .content, .page-id-6 .content {
        width:  100% !important;
        margin-left:  0 !important;
    }

    Regards

  • Viewing 6 results - 1 through 6 (of 6 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.