How to remove the sidebar in Storefront’s WooCommerce Theme

Just a little code snippet to remove Storefront’s sidebar. Add this to you functions.php:

function tk_remove_storefront_sidebar() {
  remove_action( 'storefront_sidebar', 'storefront_get_sidebar', 10 );
}
add_action( 'get_header', 'tk_remove_storefront_sidebar' );

 

 

Leave a Comment

Enable Notifications    OK No thanks