Last active
August 29, 2015 14:05
-
-
Save fovoc/17095408ba354a33744f to your computer and use it in GitHub Desktop.
Shoestrap 3.2.6 & Shoestrap Woo Child 1.3
This file contains hidden or 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 | |
/* | |
* Change layout of products categories pages with a full-width view (no sidebars) | |
* This could be used in the wp-content/mu-plugins/ folder in order to avoid changes in Woo Child and keep up with updates | |
*/ | |
function full_width_product_category_layout() { | |
global $ss_layout; | |
if ( is_product_category() ) { | |
$ss_layout::set_layout(0); | |
} | |
} | |
add_action( 'wp', 'full_width_product_category_layout' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment