• Hi,

    I’m using the woocommerce plugin with storefront for my shop. I have noticed that it displays a sidebar on every page. This is not a problem on pages because i can select the full width template per page. I becomes a problem when I for instance add blog posts to my site. I dont want to display the shop sidebar on my blog.

    I have made this snippet to remove the sidebar:

    add_action( 'get_header', 'remove_storefront_sidebar' );
    function remove_storefront_sidebar() {
        if ( is_single() ) {
            remove_action( 'storefront_sidebar', 'storefront_get_sidebar', 10 );
        }
    }

    It doees remove the sidebar but it doesnt make the content full width. CSS’ing it to become full width is not an option for I also change the shop’s layout.

    Is there a way to implement the full width template on blog/archive en post pages?

    Thanks in advance

  • The topic ‘Remove storefront woocommerce sidebar on specific pages’ is closed to new replies.