-
-
Save neilgee/ceafbd3ac9dbf2e10603 to your computer and use it in GitHub Desktop.
WooCommerce Genesis Connect + WooCommerce Sidebar
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 //<~ don't add in | |
// Declare WooCommerce support for your theme | |
add_theme_support( 'woocommerce' ); |
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 //<~ do add in | |
/** | |
* WooCommerce Template | |
* | |
* Template used for all WooCommerce views in order to avoid using Genesis Connect | |
* Save this into `themename/woocommerce.php` | |
* | |
*/ | |
//* Add WooCommerce content output | |
if ( function_exists( 'woocommerce_content' ) ) { | |
// Remove standard post content output | |
remove_action( 'genesis_loop', 'genesis_do_loop'); | |
// Replace the default Genesis loop with WooCommerce's | |
add_action( 'genesis_loop', 'woocommerce_content' ); | |
} | |
genesis(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment