Help Center
  • Woocommerce
    • Reinstall Woocommerce Missing Pages
    • Hide/Customize Woocommerce Components with CSS
    • Remove Additional Information Tab @ Single Product
    • Long Description Shortcode for Woocommerce
    • PHP Snippet: Woocommerce Reviews as Shortcode
  • Flatsome
    • Mega Menu & Custom Dropdown with UX Builder
    • Open a Lightbox Popup
    • Upload Shortcode in UX Builder
    • Product Variation Swatches
    • Custom Product Layout for Flatsome
    • Replace Flatsome or Woocommerce Icons
    • Open Chat Through a Button
Powered by GitBook
On this page
  • PHP Snippet
  • Where to add this snippet?
  • Alternative Method to Hide Additional Information tab
  1. Woocommerce

Remove Additional Information Tab @ Single Product

On the single product page, the “Additional Information” tab is a little unpleasant and, to be honest, very worthless.

There are 2 straightforward ways to “hide” it or remove it entirely: a CSS trick and a PHP fix. You can type the code in your preferred style but obviously, PHP is a better solution!

Always keep in mind that PHP is superior to CSS since PHP prevents the element from loading while CSS loads the element and subsequently hides it.

PHP Snippet

add_filter( 'woocommerce_product_tabs', 'remove_product_tabs', 9999 );

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

Where to add this snippet?

You can place PHP snippets at the bottom of your child theme functions.php file (delete “?>” if you have it there). CSS, on the other hand, goes in your child theme style.css file. Make sure you know what you are doing when editing such files.

Alternative Method to Hide Additional Information tab

I made the decision to hunt for a dependable plugin that accomplishes the same goal because I know that many readers would want to code but aren’t completely comfortable doing so.

I advise using the YITH WooCommerce Tab Manager plugin in this situation. You can remove basic tabs like “Reviews” and “Description,” but you can also add your own, make tabs display or hide depending on a product ID or category, print any material inside the new tabs like custom shortcodes, and do a lot more.

PreviousHide/Customize Woocommerce Components with CSSNextLong Description Shortcode for Woocommerce

Last updated 10 months ago