Create a gist now

Instantly share code, notes, and snippets.

WooCommerce - hide ratings on product loop
// Remove the product rating display on product loops
remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 5 );
@CapitalH

This is great

@bars38

Thank you!

@samkent

You rock!

@jsvini

Thanks!

@juliografin

Thanks! And what about ratings on current product?

@Eisenheim94

Thank you!
For removing rating on single product:
remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_rating', 10);

@aspirethemes

Thanks!

@webvines

Hi @eisenheim94,

I tried using -> remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_rating', 10);

but the ratings in the reviews tab are still showing.

Can you please help me with the code.

Thank you.

@WhiteHatJoker

@eisenheim94,

I am having the same issue remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_rating', 10); code is not working and I am getting duplicate ratings when I reinsert it with add_action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment