In many cases this tab is unnecessary and it would be better to hide it. We can do it by CSS but it’s not right way. The tab will still be there but it will be hidden by this CSS code:
/* Hide the additional information tab */
li.additional_information_tab {
display: none !important;
}
Better way to remove additional information tab in WooCommerce is editing functions.php
file which is located inside your theme directory. Open this file and paste this code:
// Remove additional information tab
function remove_product_tabs($tabs) {
unset($tabs['additional_information']);
return $tabs;
}
add_filter('woocommerce_product_tabs', 'remove_product_tabs',98);
This code unset the ‘additional_information’ variable from the ‘$tabs’ array. After saving the file and reload the page the Additional information tab has gone!
It would be great if you will comment or follow me on social media:
Also you can visit my websites:
Top comments (0)