How to hide weight in single product page

This topic has 4 replies, 2 voices, and was last updated 7 years, 1 months ago ago by Rose Tyler

  • Avatar: wizualnemedia_pl
    wizualnemedia_pl
    Participant
    January 18, 2018 at 20:00

    Hello,
    I try to hide weight in single product page.

    When I use this code “add_filter( ‘woocommerce_product_get_weight’ , ‘__return_false’ );” in function.php in child theme I got error in the checkout, becouse weight is a must to calculate shipping cost.

    Olga, can you help me? 😛
    Where to hide this product attribute in the xstore template?
    There?
    https://prnt.sc/i2bkq1

    3 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 19, 2018 at 10:23

    Hello,

    Please try to add this code in Custom css:

    .single-product .shop_attributes tr:first-child {
        display:  none;
    }

    Regards

    Avatar: wizualnemedia_pl
    wizualnemedia_pl
    Participant
    January 19, 2018 at 10:55

    Hello Rose,
    thank you very much. It works! 😀

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 19, 2018 at 11:00

    You’re welcome!
    Have a nice day.

    Regards

  • Viewing 4 results - 1 through 4 (of 4 total)

The issue related to '‘How to hide weight in single product page’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.