1

single-product.php not working for single products. I do not have woocommerce.php file in my theme but still single.php executing for single products. This is a custom theme and when i change my theme name to twentyten then single-product.php started to execute but when i change its name to something else (custom theme name) than this template does not work at all and instead it execute single.php Any suggestion will be much appreciated.

4
  • Why are you posting this again? It's been less than a day. Besides, it's about a 3rd-party plugin and off-topic. Please see the WooCommerce developer documentation for supporting WooCommerce in your theme. Commented Mar 23, 2018 at 12:08
  • I was not able to get any response on this issue that is why i post this again. If this is off-topic then why woocommerce tag is available ?
    – wpdd
    Commented Mar 23, 2018 at 12:10
  • Firstly, 15 hours is not enough time to say you didn't get a response. Secondly, when you select WooCommerce as a tag a box literally appears right under it that says "OFF TOPIC. Questions specific for this e-commerce plugin have their own forum at wordpress.org/support/plugin/woocommerce.". Commented Mar 23, 2018 at 12:14
  • 1
    Possible duplicate of single-product.php template not working for single products Commented Mar 24, 2018 at 2:57

1 Answer 1

2

I add this line in my theme's functions.php file and now everything working fine.

add_theme_support( 'woocommerce' );

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.