Home Forums WoodMart support forum Remove star rating from product loop (not CSS)

Remove star rating from product loop (not CSS)

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #560623

    minhhieu7613
    Participant

    Hello!
    How can i remove rating from product archive page?
    I used this hook
    remove_action (‘woocommerce_after_shop_loop_item_title’, ‘woocommerce_template_loop_rating’, 5 );
    but no effect.

    Thank you so much!

    #560871

    Hung Pham
    Keymaster

    Hi minhhieu7613,

    Thanks for reaching to us.

    To assist you in the best possible manner, I kindly ask that you please provide me temporary wp-admin info (wp-admin URL, username, password) to the Private Content area, this will allow me to thoroughly investigate and address your concerns more efficiently.

    Regards,

    #561003

    minhhieu7613
    Participant

    Thank you so much!

    #561433

    Hung Pham
    Keymaster

    Hi minhhieu7613,

    First of all, take my apologies for the delay in answering because of the weekend.

    I cannot access your site due to 403 restriction, please double check https://prnt.sc/yUBmlEj8HP-m

    Regards,

    #563020

    minhhieu7613
    Participant

    I still access the website normally

    Attachments:
    You must be logged in to view attached files.
    #563282

    Hung Pham
    Keymaster

    Hi minhhieu7613,

    First of all, I’m really sorry have taken long time to reply you due to the weekend.

    I can access your site, I checked your site: the stars ratings are now hidden, please double check.

    Regards,

    #565055

    minhhieu7613
    Participant

    Hello, currently I still can’t hide all the star reviews on the product archive page. I have created a demo product and you can see it in the attached image.

    Attachments:
    You must be logged in to view attached files.
    #565370

    Hung Pham
    Keymaster

    Hi minhhieu7613,

    Thanks for your patience.

    Please add below code to functions.php file in Child theme:

    add_action('woocommerce_product_get_rating_html', function ($html) {
    	if ( ! is_single() ) {
    		return '';
    	}
    
    	return $html;
    });

    Regards,

    #566709

    minhhieu7613
    Participant

    It’s worked. Thank you so much!

    #566827

    Hung Pham
    Keymaster

    Hi minhhieu7613,

    Glad to hear your issue has been resolved. Keep us in mind for future questions and concerns, we’re always here to help!

    If you have a quick minute we always appreciate a 5-star rating on our theme!

    https://themeforest.net/item/woodmart-woocommerce-wordpress-theme/reviews/20264492

    Your feedback is the motivation to improve our work and services.

    Regards,

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

The topic ‘Remove star rating from product loop (not CSS)’ is closed to new replies.