thumb Some of my WooCommerce clients didn’t want to show the “Additional Information” tab on the single product pages on their website. There are 2 simple solutions: CSS one to hide this tab and PHP one to delete it completely. In this article I show you both solutions.



Before:

After:

CSS solution

Add the following CSS snippet to style.css file of your child theme or use the My Custom Styles plugin for better and easy management of all your CSS snippets.

// Hide the additional information tab
li.additional_information_tab {
	display: none !important;
}

PHP solution

Add the following PHP snippet to functions.php file of your child theme or use the My Custom Functions plugin for better and easy management of all your PHP snippets.

// Remove the additional information tab
function woo_remove_product_tabs( $tabs ) {
    unset( $tabs['additional_information'] );
    return $tabs;
}
add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );

For more information see the WooCommerce Docs page.


Arthur Gareginyan

Arthur Gareginyan

Arthur is a designer and full stack software engineer. He is the founder of MyCyberUniverse.com. His personal website can be found at arthurgareginyan.com. Check out his free WordPress plugins at wordpress.org.

Follow Arthur: