Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Full width layout for main shop page
- *
- * How to use:
- * Save this file as `wp-contents/mu-plugins/full-width-shop-page.php`
- */
- function full_width_shop_page() {
- if ( is_shop() ) {
- global $ss_layout;
- $ss_layout->set_layout( 0 );
- add_filter( 'shoestrap_display_primary_sidebar', '__return_false', 999 );
- add_filter( 'shoestrap_display_secondary_sidebar', '__return_false', 999 );
- }
- }
- add_action( 'wp','full_width_shop_page' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement