Senior Full Stack Developer
December 2024
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Categories


Missing product reviews on woocommerce product page

MubashirMubashir

Woocommerce products reviews are handy because they provide social proof about the users engagement with your products.

While developing a custom theme I came across the issue where none of the product was showing product review tab even though I had enabled WordPress comments and Woocommerce products reviews.

After searching I got a simple solution which I want to share if someone is get into same trouble. If you are developing a custom woocommerce theme then don’t forgot to add the woocommerce theme support in your theme.

Add the following snipped of code in your theme functions.php file and your product reviews will begin to show

function my_theme_woocommerce_support()
{
    add_theme_support('woocommerce');
    
}
add_action('after_setup_theme', 'my_theme_woocommerce_support');

Comments 0
There are currently no comments.