Support » Theme: Sydney » remove sidebar for woocommerce cart and checkout pages

  • OK, I like Sydney a lot for building a woocommerce shop. Remaining issue is removing the sidebar on specific pages. I am looking for some control on removing the sidebar for cart, checkout. Optionally on product detail page as well but I have not decided on the product detail page. It would be great to have these options at hand. Is there a way to do it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @daspi,

    Please try to use WooSidebars plugin in order to display (or not) different widgets on different pages.

    Kind Regards, Roman.

    Thank you Roman. But it is not that I want different sidebars. I want no sidebar and instead 100% width just on cart and checkout pages.

    Hello daspi,

    Add below code into your child theme’s functions.php file.

    Note : Don’t modify your theme. Use child theme for any modification.


    add_action('wp_head', 'hide_sidebar' );
    function hide_sidebar(){
    if(is_cart() || is_checkout()){
    ?><style type="text/css">
    #secondary {
    display: none;
    }
    </style><?php
    }
    }

    Hope this will helps you.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘remove sidebar for woocommerce cart and checkout pages’ is closed to new replies.