Your account expired support, please renew to get your support.

HomePage Forums Themes Support Technogy – Electronics Store WooCommerce Theme Remove “number of reviews” from category page view

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #37504
    docergo
    Support Expired

    Hi
    We disabled all product reviews but it still shows up on all product tabs on category pages.

    Can we hide this? Removal is not a good option as we may need to display this in the future.

    Thank you.

    #37513

    Please add this code to the file functions.php ( child-theme):

    function technocy_woocommerce_template_loop_rating() {
            global $product;
            $count = $product->get_review_count();
    if ( $count && wc_review_ratings_enabled() ) {
            echo '<div class="technocy-count-review">' . wc_get_rating_html($product->get_average_rating()) . '<span>';
            printf(esc_html(_nx('%1$s Review', '%1$s Reviews', $count, 'Review Count', 'technocy')),
                number_format_i18n($count)
            );
            echo '</span></div>';
    }
        }
    #37556
    docergo
    Support Expired

    Worked like a charm. Thank you.

    #37566

    You are welcome!

    Let me know if you need to help.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.