Created
April 3, 2019 09:29
-
-
Save deeman/02940169e385179c597f4ed356960001 to your computer and use it in GitHub Desktop.
Genesis Framework - Full width on WooCommerce Pages
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
| 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