DEV Community

Cover image for Remove additional information tab in WooCommerce
Chris Texe
Chris Texe

Posted on • Updated on • Originally published at madlon.eu

Remove additional information tab in WooCommerce

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;
}
Enter fullscreen mode Exit fullscreen mode

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);
Enter fullscreen mode Exit fullscreen mode

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:

Chris Texe Twitter

Chris Texe LinkedIn

Also you can visit my websites:

Top comments (0)