Hide weight and dimension - by letracapital

This topic has 5 replies, 3 voices, and was last updated 6 years, 9 months ago ago by Rose Tyler

  • Avatar: letracapital
    letracapital
    Participant
    August 3, 2017 at 17:06

    Hello, I would like to know how to hide the weight and dimension of tab additional information, I am using add_filter (‘woocommerce_product_get_weight’, ‘__return_false’); but it does not work.

    Thank you in advance for your attention.

    Please, contact administrator
    for this information.
    4 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 4, 2017 at 07:48

    Hello,

    You can simply don’t set values for weight and dimension or use this code in Theme Option > Custom css:

    .single-product .shop_attributes tr:first-child, .single-product .shop_attributes tr:nth-child(2) {
        display: none;
    }

    Regards

    Avatar: laranz
    Laranz
    Participant
    August 4, 2017 at 08:18

    Hi,

    Use this Custom CSS in Theme Options -> Styling -> Custom CSS

    .shop_attributes tr:nth-child(-n+2) { display: none; }

    Let us know,

    Thanks,
    laranz.

    Avatar: letracapital
    letracapital
    Participant
    August 4, 2017 at 13:20

    Thank you very much, the css code hid the information.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 4, 2017 at 13:55

    You’re welcome!

    Regards

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

You must be logged in to reply to this topic.Log in/Sign up

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