Support » Plugin: WooCommerce » Disabling product reviews doesnt disable ratings on reviews

  • Resolved En18Zone

    (@en18zone)


    Hi

    When product reviews are disabled shouldn’t star ratings also be disabled automatically and not show on front-end?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Mariusz

    (@motylanogha)

    Hi,
    It all depends on your theme. But as usual, stars are not disabled when you disable product reviews. You need to use plugin or just a hook to disable the star ratings as well like the following that you can add to your functions.php file in your theme folder:

    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_rating', 10 );
    add_action( 'woocommerce_single_product_summary', 'my_woocommerce_template_single_rating', 10 );
    function my_woocommerce_template_single_rating() {
        global $product;
      }

    You can also refer to this link for more clarification: https://github.com/woocommerce/woocommerce/issues/5937#issuecomment-50838337

    Another method is just to add display:none; CSS parameter to the element (class/id) in your custom stylesheet.
    I hope that will help.

    Thanks @motylanogha. I will ask the theme developer to have a look at this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.