How to hide “sku: n/a” or any blank field from product page?

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

  • Avatar: kim
    kim
    Participant
    July 22, 2021 at 15:34

    hi,
    i did not fill in sku field for product, but it shows sku:N/A on product page??
    how to hide “sku: n/a” or any blank field from product page?
    thank you

    Please, contact administrator
    for this information.
    5 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    July 23, 2021 at 09:51

    Hello,

    Do you want to remove SKU only for products where you did not add that or for all the products?

    Regards

    Avatar: kim
    kim
    Participant
    July 23, 2021 at 14:17

    hi olga, i only need to hide/remove sku when i did not add that, not for all product, if i add sku, i need it show up, thank you

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    July 23, 2021 at 20:17

    Hello,

    Unfortunately, WooCommerce does not have such option.

    Regards

    Avatar: kim
    kim
    Participant
    July 27, 2021 at 15:18

    hi olga, then can you hide all sku no matter its blank or filled? thank you

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 27, 2021 at 15:56

    You can use this code to hide the SKU:

    .product_meta .sku_wrapper {
        display: none;
    }

    Regards

  • Viewing 6 results - 1 through 6 (of 6 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.