How to remove empty attributes “N/A” in Magento 2?

Remove Empty attribute from the Product Page Tabs section, By Default Text, will be displayed as ‘N/A’ for empty attributes.

Attributes Data coming from Magento Catalog module with view template file name is attributes.phtml

Just Override attributes.phtml file from Catalog module into your theme, It’s working for Multilanguage store also.

Theme Path for attributes.phtml file,


Just keep line,

<?php if($_data[‘value’] == __( ‘N/A’)) continue;?>


<?php foreach ($_additional as $_data): ?> line,

Full code of attributes.phtml file,

Clear cache using php bin/magento cache:flush.