Declare Woocommerce Support

Add this to functions.php to declare Woocommerce Support in a third party theme:

add_action( 'after_setup_theme', 'woocommerce_support' );
function woocommerce_support() {
    add_theme_support( 'woocommerce' );

Found on the Woothemes website.

Note: WooCommerce 3.5+ requires Theme Support to be declared. Working with WPML will show errors (e.g., blog posts showing on translated Shop pages along with Products) if Theme Support is not added to functions.php

Leave a Reply

katherine as a flat graphic icon

About Me

I’m an African / Ojibwe First Nations Web Developer living in Winnipeg, Manitoba.

Visit the Tips and Blog to see what I’m working on.