Last active
August 29, 2015 14:07
-
-
Save lmartins/5ad951cc9ae2ecaabca8 to your computer and use it in GitHub Desktop.
Force layout on specific pages
This file contains 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_action( 'genesis_meta', 'mw_force_woo_pages_layout' ); | |
function mw_force_woo_pages_layout() { | |
if ( is_woocommerce() ) { | |
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment