Home Forums WoodMart support forum Disable Sidebar for category product

Disable Sidebar for category product

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #95302

    fra87
    Participant

    Hi,
    i used this snippet for remove sidebar in one woocommerce category.

    function remove_sidebar_shop() {
        if ( is_product_category('category-name') ) {
            remove_action('woocommerce_sidebar', 'woocommerce_get_sidebar', 10);
        }
    }
    add_action('template_redirect', 'remove_sidebar_shop');

    Now, in the “content-layout-wrapper” line, the “site-content” is in lg-9 and remain a empty space.
    How can I set the “site-content” in lg-12? Or is it possible another way to disable the sidebar by shop category?
    Thanks!

    #95314

    Artem Temos
    Keymaster

    Hello,

    Thank you so much for purchasing our theme and contacting our support center.

    Please, send us a link to this category page so we can see how the code works now.

    Kind Regards
    XTemos Studio

    #96328

    fra87
    Participant

    Hi, thanks for the reply!

    #96377

    Artem Temos
    Keymaster

    Yes, you can use your code on your website. Currently, we don’t have such plans but we will consider implementing this option in the future.

    Regards

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