Categories
WordPress

How To Remove The WooCommerce Additional Information Tab

Recently I was working with a designer to complete an eCommerce site using the WooCommerce WordPress plugin. A default WooCommerce product page displays the content entered into the WordPress editor as the content under the product description tab. The review tab displays all the product reviews and allows people to submit reviews. Then there is the additional information tab that only displays the weight, dimensions, and the attributes for a product. If no weight, dimensions, or attributes are entered for a product the additional information tab is not displayed.

There is no option in the WordPress admin to customize the additional information tab content and the necessary information (the dimensions) can be added to the description tab. I considered changing the name of the additional information tab and customizing the content displayed in the additional information tab using the woocommerce_product_tabs filter. Β The final solution which I am going to share with you is to completely remove the additional information tab.

To remove the additional Information tab add the following code to your site functionality plugin or your themes functions.php file.


//remove additonal info tab from products
add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
 
function woo_remove_product_tabs( $tabs ) {
    global $product;
	
	if( $product->has_attributes() || $product->has_dimensions() || $product->has_weight() ) {
        unset( $tabs['additional_information'] );   
    }
    return $tabs;
}
//Source: http://docs.woothemes.com/document/editing-product-data-tabs/

The code above will change the product page so that there are only two tabs: Description and Reviews.

Woocommerce Product Tabs After

 

Subscribe To Updates and Tips Via Email

Get tips on web development, WordPress, web design & more

22 replies on “How To Remove The WooCommerce Additional Information Tab”

Hi Arelthia, thanks for this little code snippet! I’ve been working on a website that sells cookies and I needed to remove the additional information because it was confusing the customers. This really saved me a lot of time trying to figure it out on my own. Aloha! -Ty

Thanks Arelthia,
You shared code is very useful and I was searching the exact same solution, it worked in my case.
Thanks again. Keep it up!

Hi,
Is there a way to have Weights and Dimensions for VARIABLE products show in the Additional Information tab?
Alternatively, if this isn’t possible, is there a way to remove the Additional Information tab for Variable products only?

Thanks in advance!

Rene

I have the same question. I want to remove the “additional information” tab on my product pages because I have other info that I would like to show. I was able to remove the additional tab by removing the info in the single product pages under shipping. however, when I remove the info on VARIABLE product pages (recurring orders), I can’t figure out how to remove it. Please help!

Hi Arelthia, I’m trying to use only css to:
1. remove the “DESCRIPTION” box on the left on all the single product page.
2. Also on the single product page, to align the product name and details to the center, on the mobile versions.
These glitches just appeared after an update- really frustrating can’t seem to solve the problems!!

Comments are closed.