Okay so you follow Woo-commerce Documentation and created a woo-commerce folder in your theme dir and placed your edited archive-product.php and other woo-commerce template you want to override default woo-commerce template but its not working ?

Or you just updated your woo-commerce and all your changes of custom templates gone ?

Well then this little trick gonna help you like magic. You just have to add this code to your theme functions.php and it will work

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

Explanation: This code declare that your theme supports woo-commerce and in most cases this little piece code fixes your problem.

Write a Comment