Menu Close

WooCommerce: Remove Additional Information Tab @ Single Product

default

The “Additional Information” tab on the single product page is somewhat annoying and, honestly, quite useless.

There are 2 simple methods to “hide” it or delete it completely: a CSS and a PHP solution. In the first case, you can input the code in your style.css; in the second case use your child theme’s functions.php.

However, Always remember that PHP is better than CSS: with CSS you load the element and then hide it, while with PHP you stop the element from loading. Clearly, PHP is a better way to do it!

WooCommerce: Hide Additional Information Product Tab

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

/**
 * @snippet       Remove Additional Information Tab @ WooCommerce Single Product Page
 * @how-to        Get CustomizeWoo.com FREE
 * @author        Rodolfo Melogli
 * @testedwith    WooCommerce 3.8
 * @donate $9     https://businessbloomer.com/bloomer-armada/
 */
 
add_filter( 'woocommerce_product_tabs', 'bbloomer_remove_product_tabs', 9999 );
 
function bbloomer_remove_product_tabs( $tabs ) {
    unset( $tabs['additional_information'] ); 
    return $tabs;
}

“I don’t code – is there a plugin for that?”

As many readers would love to code but don’t feel 100% confident with it, I decided to look for a reliable plugin that achieves the same result.

In this case, I recommend the YITH WooCommerce Tab Manager plugin. On top of deleting default tabs such as the “Reviews” and “Description” ones, you can also add your own, conditionally show tabs based on category or product ID, print any content inside the new tabs such as custom shortcodes, hide on mobile and much more.

But in case you wish to code, keep reading 🙂

View Source
Posted in WooCommerce Tips