DEV Community

Cover image for Remove additional information tab in WooCommerce
Chris Texe
Chris Texe

Posted on • Edited on • Originally published at madlon.eu

3 2

Remove additional information tab in WooCommerce

In many cases this tab is unnecessary and it would be better to hide it. We can do it by CSS but it’s not right way. The tab will still be there but it will be hidden by this CSS code:

/* Hide the additional information tab */
li.additional_information_tab {
    display: none !important;
}
Enter fullscreen mode Exit fullscreen mode

Better way to remove additional information tab in WooCommerce is editing functions.php file which is located inside your theme directory. Open this file and paste this code:

// Remove additional information tab
function remove_product_tabs($tabs) {
  unset($tabs['additional_information']);
  return $tabs;
  }

add_filter('woocommerce_product_tabs', 'remove_product_tabs',98);
Enter fullscreen mode Exit fullscreen mode

This code unset the ‘additional_information’ variable from the ‘$tabs’ array. After saving the file and reload the page the Additional information tab has gone!


It would be great if you will comment or follow me on social media:

Chris Texe Twitter

Chris Texe LinkedIn

Also you can visit my websites:

👋 Kindness is contagious

Please leave your appreciation by commenting on this post!

It takes one minute and is worth it for your career.

Get started

Thank you!

Top comments (0)

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay