Declare WooCommerce support in the third party theme

A very important snippet that you can use to add WooCommerce support to any WordPress theme:

function mytheme_add_woocommerce_support() {
add_theme_support( 'woocommerce' );
add_theme_support( 'wc-product-gallery-zoom' );
add_theme_support( 'wc-product-gallery-lightbox' );
add_theme_support( 'wc-product-gallery-slider' );
}
add_action( 'after_setup_theme', 'mytheme_add_woocommerce_support' );
See also  Adding Custom Currency to WooCommerce

Leave a Reply

Your email address will not be published. Required fields are marked *