Skip to content

Instantly share code, notes, and snippets.

@srikat
Last active November 2, 2015 09:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srikat/b4af5f31c03b74ffb311 to your computer and use it in GitHub Desktop.
Save srikat/b4af5f31c03b74ffb311 to your computer and use it in GitHub Desktop.
// Declare WooCommerce support for your theme
add_theme_support( 'woocommerce' );
<?php
/**
* WooCommerce Template
*
* Template used for all WooCommerce views in order to avoid using Genesis Connect
*
*/
//* 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