WooCommerce: Remove a Tab @ Single Product Page

There are ways to completely remove the WooCommerce Single Product page tabs, but in case you wish to remove only one of them, these easy snippets will teach you how to do just that.

For example, you may want to hide the “Reviews tab because you don’t want to enable product feedback. Or maybe you would like to hide the “Additional Information” tab, because you don’t need that information to be seen.

Either way, it’s super easy – enjoy!

You could remove all WooCommerce product tabs… or instead hide a single tab. In this case scenario we’ll take a look at the second option!

PHP Snippet 1: Hide “Description” Tab @ WooCommerce Single Product Page

/**
 * @snippet       WooCommerce Remove Description Tab
 * @how-to        businessbloomer.com/woocommerce-customization
 * @author        Rodolfo Melogli, Business Bloomer
 * @compatible    WooCommerce 8
 * @community     https://businessbloomer.com/club/
 */
 
add_filter( 'woocommerce_product_tabs', 'bbloomer_remove_desc_tab', 9999 );

function bbloomer_remove_desc_tab( $tabs ) {
   unset( $tabs['description'] );
   return $tabs;
}

PHP Snippet 2: Hide “Additional Information” Tab @ WooCommerce Single Product Page

/**
 * @snippet       WooCommerce Remove Additional Info Product Tab
 * @how-to        businessbloomer.com/woocommerce-customization
 * @author        Rodolfo Melogli, Business Bloomer
 * @compatible    WooCommerce 8
 * @community     https://businessbloomer.com/club/
 */
 
add_filter( 'woocommerce_product_tabs', 'bbloomer_remove_info_tab', 9999 );

function bbloomer_remove_info_tab( $tabs ) {
   unset( $tabs['additional_information'] );
   return $tabs;
}

PHP Snippet 3: Hide “Reviews” Tab @ WooCommerce Single Product Page

/**
 * @snippet       WooCommerce Remove Reviews Product Tab
 * @how-to        businessbloomer.com/woocommerce-customization
 * @author        Rodolfo Melogli, Business Bloomer
 * @compatible    WooCommerce 8
 * @community     https://businessbloomer.com/club/
 */
 
add_filter( 'woocommerce_product_tabs', 'bbloomer_remove_reviews_tab', 9999 );

function bbloomer_remove_reviews_tab( $tabs ) {
   unset( $tabs['reviews'] );
   return $tabs;
}

Bonus PHP Snippet: Hide Tab Only For a Specific Product Category @ WooCommerce Single Product Page

/**
 * @snippet       WooCommerce Remove Product Tab If Given Category
 * @how-to        businessbloomer.com/woocommerce-customization
 * @author        Rodolfo Melogli, Business Bloomer
 * @compatible    WooCommerce 8
 * @community     https://businessbloomer.com/club/
 */
 
add_filter( 'woocommerce_product_tabs', 'bbloomer_remove_tab_if_cat', 9999 );

function bbloomer_remove_tab_if_cat( $tabs ) {
   if ( has_term( 'tables', 'product_cat' ) ) {
       unset( $tabs['reviews'] ); // remove reviews for tables
   }
   return $tabs;
}

Advanced Plugin: WooCommerce Product Tabs

In case you’re not very confident adding code snippets to your site, then I also did some research on the best plugin solutions that will achieve the same result. For a plugin option, I recommend that you install the WooCommerce Product Tabs plugin.

This plugin by the team at Barn2 gives you full control over the content and visibility of your WooCommerce product page tabs. You can rename each tab, add an icon, or tick a box on the settings page to hide it completely. It’s also possible to add your own custom tabs, for example if you want to replace the default tabs with your own new ones.

Where to add custom code?

You should place custom PHP in functions.php and custom CSS in style.css of your child theme: where to place WooCommerce customization?

This code still works, unless you report otherwise. To exclude conflicts, temporarily switch to the Storefront theme, disable all plugins except WooCommerce, and test the snippet again: WooCommerce troubleshooting 101

Related content

Rodolfo Melogli

Business Bloomer Founder

Author, WooCommerce expert and WordCamp speaker, Rodolfo has worked as an independent WooCommerce freelancer since 2011. His goal is to help entrepreneurs and developers overcome their WooCommerce nightmares. Rodolfo loves travelling, chasing tennis & soccer balls and, of course, wood fired oven pizza. Follow @rmelogli

10 thoughts on “WooCommerce: Remove a Tab @ Single Product Page

  1. Hi, how can I hide the tab on a specific product? I want it on all the products on our store except for one product ID.

    Thanks!

    1. Hey Matt, I suggest you take a look at “conditional logic”: https://businessbloomer.com/woocommerce-conditional-logic-ultimate-php-guide/. Enjoy πŸ™‚

  2. Worked. Thanks

    1. Great!

  3. Totaly worked. I was also able to remove the description.

    1. Great!

  4. I tried this, but it just doesnt remove the additional information tab.

    Can you please help?

    1. Hello John, I just tested this again with Storefront theme and it works perfectly. Maybe your theme (or another plugin) is messing/conflicting with my snippet?

      To troubleshoot, disable all plugins but WooCommerce and also switch temporarily to “Twentyseventeen” theme (load the snippet there in functions.php) – does it work? If yes, you have a problem with your current theme or one of the plugins.

      Hope this helps!

      R

  5. Totally worked – thank you so much…

    Just one comment – my child theme had its own functions file – but whilst there was an opening tag – so I just added the code at the end of the file.

    1. Excellent πŸ™‚

Questions? Feedback? Customization? Leave your comment now!
_____

If you are writing code, please wrap it like so: [php]code_here[/php]. Failure to complying with this, as well as going off topic or not using the English language will result in comment disapproval. You should expect a reply in about 2 weeks - this is a popular blog but I need to get paid work done first. Please consider joining the Business Bloomer Club to get quick WooCommerce support. Thank you!

Your email address will not be published. Required fields are marked *