Skip to content

Instantly share code, notes, and snippets.

@mikezielonka
Created May 15, 2015 04:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikezielonka/9837e26e0c481467bef9 to your computer and use it in GitHub Desktop.
Save mikezielonka/9837e26e0c481467bef9 to your computer and use it in GitHub Desktop.
force full width for woocommerce when using Genesis WordPress Themes
/**
* 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