Product tabs are an essential part of any online store, allowing customers to find the information they need quickly and easily. However, there may come a time when you need to remove product tabs in WooCommerce. Sometimes you don’t need product tabs in WooCommerce.
One of the most common reasons to remove product tabs in WooCommerce is to simplify the shopping experience. Too many tabs can make it difficult for customers to find the information they need, and can even lead to confusion and frustration. If you want to make the shopping process easier for your customers, removing product tabs in WooCommerce can be a great way to do so.
Another reason to remove product tabs in WooCommerce is to create a more streamlined look for your store. Having too many tabs can make your store look cluttered and unprofessional, and can take away from the overall design of your site. Removing product tabs in WooCommerce can help to create a more polished and organized look.
Sometimes to design and increase the user experience you have to know how to remove product tabs in WooCommerce on the WordPress website. To remove product tabs, follow the below steps.
WooCommerce default product tabs are “Description”, “Aditional Information” and “Reviews” tabs.
Remove the Product Description Tab
The “Description” tab displays the main content area of the product.
To remove the tab open the “functions.php” file of your theme and add the below code.
add_filter( 'woocommerce_product_tabs', 'hs_remove_description_tab', 11 );
function hs_remove_description_tab( $tabs ) {
unset( $tabs['description'] );
return $tabs;
}
Remove the Additional Information Tab
This tab displays product attributes.
add_filter( 'woocommerce_product_tabs', 'hs_remove_additional_information' );
function hs_remove_additional_information( $tabs ) {
unset( $tabs['additional_information'] );
return $tabs;
}
Remove Reviews Tab
This tab displays customer reviews. You can hide this tab by disabling the product reviews on the product edit page or you can also do it globally for all products in WooCommerce settings.
If you still want to disable this tab by coding, here is the code.
add_filter( 'woocommerce_product_tabs', 'hs_remove_reviews_tab' );
function hs_remove_reviews_tab( $tabs ) {
unset( $tabs['reviews'] );
return $tabs;
}
Conclusion
Removing product tabs in WooCommerce is a great way to simplify the shopping experience for your customers and create a more streamlined look for your store. It’s a relatively straightforward process and can make a big difference in the overall design of your site. So if you’re looking to make some changes to your online store, removing product tabs in WooCommerce is a great place to start.