Skip to content

Instantly share code, notes, and snippets.

@deeman
Created April 3, 2019 09:29
Show Gist options
  • Select an option

  • Save deeman/02940169e385179c597f4ed356960001 to your computer and use it in GitHub Desktop.

Select an option

Save deeman/02940169e385179c597f4ed356960001 to your computer and use it in GitHub Desktop.
Genesis Framework - Full width on WooCommerce Pages
add_filter( 'genesis_pre_get_option_site_layout', 'change_layout_woocommerce');
function change_layout_woocommerce( $opt ) {
if ( ! class_exists( 'WooCommerce' ) )
return;
if (is_shop() ) {
$opt = 'full-width-content';
return $opt;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment