Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Declare WooCommerce Support in theme (simple)
// Below declares woocommerce support when added to a theme or child theme functions.php - from the official WooCommerce Github (August 2018)
// Posted by Robin Scott of Silicon Dales here to benefit the Open Source community. Free to share and distribute for any purpose.
function mytheme_add_woocommerce_support() {
add_theme_support( 'woocommerce' );
add_action( 'after_setup_theme', 'mytheme_add_woocommerce_support' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment