This topic has 4 replies, 2 voices, and was last updated 1 years, 6 months ago ago by Tony Rodriguez
How to remove this (0) in review tab?
Screenshot : https://snipboard.io/sFAGpV.jpg
Hello, Catholicans,
The review tab is a feature of the WooCommerce plugin. To remove the (0) from the review tab, please add the following code to your child theme’s functions.php file:
add_filter( 'woocommerce_product_tabs', 'wp_woo_rename_reviews_tab', 99);
function wp_woo_rename_reviews_tab($tabs) {
global $product;
$check_product_review_count = $product->get_review_count();
if ( $check_product_review_count == 0 ) {
$tabs['reviews']['title'] = 'Reviews';
} else {
$tabs['reviews']['title'] = 'Reviews('.$check_product_review_count.')';
}
return $tabs;
}
We hope this resolves your issue.
Best Regards,
8Theme’s Team
I noticed that the review tab is not tallying the reviews that have been posted. Is there a way to fix this and make it function properly?
Screenshot: https://snipboard.io/4WKNGQ.jpg
Hello, Catholicans,
I have tested the functionality of your site with a test product and it appears to be working properly. I have included a screenshot of the test product for your reference: https://postimg.cc/4HGcsjQt
I have also posted a review of the test product on your site: https://kunjucatholicans.com/product/test-product/#comment-126 and it appears to be functioning correctly. It appears that the issue may be related to a caching issue on your end.
We suggest that you try clearing your cache and then check back again.
Best Regards,
8Theme’s Team
Tagged: best selling themes, removing 0, review tab, seo friendly, woocommerce
You must be logged in to reply to this topic.Log in/Sign up