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.
-
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.– Jacob PeattieCommented 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 ?– wpddCommented 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.".– Jacob PeattieCommented Mar 23, 2018 at 12:14
-
1Possible duplicate of single-product.php template not working for single products– Jacob PeattieCommented Mar 24, 2018 at 2:57
Add a comment
|
1 Answer
I add this line in my theme's functions.php file and now everything working fine.
add_theme_support( 'woocommerce' );