Created
May 15, 2015 04:39
-
-
Save mikezielonka/9837e26e0c481467bef9 to your computer and use it in GitHub Desktop.
force full width for woocommerce when using Genesis WordPress Themes
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
/** | |
* WooCommerce Layout | |
*/ | |
//check if woo is active | |
if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { | |
function site_woo_layout() { | |
//apply full width to all woo pages | |
if( is_woocommerce() ) { | |
return 'full-width-content'; | |
} | |
} | |
add_filter( 'genesis_site_layout', 'site_woo_layout' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment