// ========================================================================= // STOREFRONT REMOVE SIDEBAR - FULL WIDTH LAYOUT // ========================================================================= function wpflames_remove_storefront_sidebar() { remove_action( 'storefront_sidebar', 'storefront_get_sidebar', 10 ); add_filter( 'body_class', function( $classes ) { return array_merge( $classes, array( 'page-template-template-fullwidth page-template-template-fullwidth-php ' ) ); } ); } add_action( 'get_header', 'wpflames_remove_storefront_sidebar' );
Rodrigo says
Perfect. Works. Thank you.
Gabor says
Your welcome Rodrigo!
Ti says
Thanks a lot for this code. Thanks a lot. I had been searching.
Frank says
Spot on! exactly what is needed.
Thanks a lot
ahir says
totally works!!