Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Remove Sidebar from Shop/category Page */
- add_action( 'get_header', 'remove_storefront_sidebar' );
- function remove_storefront_sidebar() {
- if ( is_product_category() || is_shop() ) {
- remove_action( 'storefront_sidebar', 'storefront_get_sidebar', 10 );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement