Created
April 18, 2015 11:50
-
-
Save fovoc/1a75131326af85bb9de9 to your computer and use it in GitHub Desktop.
Shoestrap 3 Woo child - full width shop page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment