Magento 2.x – How to remove empty attributes “N/A” on PDP tabs


If you don’t want to show to the customer the empty attributes of your products in the PDP, for example in the More Information tab, such like this:

 

You will need to do the following:

  • Override the file vendor/magento/module-catalog/view/frontend/templates/product/view/attributes.phtml into your theme:

or

  • Edit your theme new file, adding the following code:

    just below this:
  • So, this should be the full code of your phtml:
  • Clean the following folders:

    Or just clean cache and make an static content deploy instead.
  • Try again, and you should get the following result: