Created
November 30, 2017 19:06
-
-
Save UltimateWoo/24c4174ec388e9bb01d2e97947cc9cba to your computer and use it in GitHub Desktop.
Force Genesis Layout on WooCommerce Product Category Archives
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
<?php | |
/** | |
* Sidebar-Content Layout on Product category archives | |
* | |
* @author UltimateWoo <www.ultimatewoo.com>; | |
*/ | |
function ultimatewoo_wc_product_cat_genesis_layout() { | |
if ( is_tax( 'product_cat' ) ) { | |
return 'sidebar-content'; | |
} | |
} | |
add_filter( 'genesis_site_layout', 'ultimatewoo_wc_product_cat_genesis_layout' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment