Remove additional information tab
3 months ago by Tamas
WooCommerce by default displays three tabs on the single product page: Description, Additional Information and Reviews. From the settings only the “Reviews” tab can be deactivated. If you want to remove other tabs, we need to edit the code.
The “Additional Information” tab can only contain some custom information so we can’t just display anything there. It’s best to remove it, and use plugin to create a custom tab in its place.
It’s very easy to remove the additional information tab from WooCommerce product page. Here is what you need to do:
Locate and open the functions.php file of your theme and add the following code at the end:
add_filter('woocommerce_product_tabs', 'woo_remove_product_tabs', 98);
function woo_remove_product_tabs($tabs) {
unset($tabs['additional_information']);
return $tabs;
}
This will remove the additional information tab.
If you want to add your own custom tab this area, you can use the “Custom Product Tabs for WooCommerce” plugin.
LEAVE A REPLY
Your email address will not be published. Required fields are marked *