WooCommerce: Remove Additional Information Tab @ Single Product

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 8
 * @community     https://businessbloomer.com/club/
 */
 
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, there are two!

To start with, you can install Barn2’s WooCommerce Product Tabs plugin, which will let you do exactly the same thing and more. When you install the plugin, go to the plugin settings page and tick the box to hide the Additional Information tab. If you want to make other changes to your product page tabs, then you can do that too. You can rename the default tabs, add icons to them, and also create your own custom tabs containing whatever content you need. This will give you a lot more flexibility than the default Additional Information tab.

In alternative, 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.

Where to add custom code?

You should place custom PHP in functions.php and custom CSS in style.css of your child theme: where to place WooCommerce customization?

This code still works, unless you report otherwise. To exclude conflicts, temporarily switch to the Storefront theme, disable all plugins except WooCommerce, and test the snippet again: WooCommerce troubleshooting 101

Related content

  • WooCommerce Visual Hook Guide: Single Product Page
    Here’s a visual hook guide for the WooCommerce Single Product Page. This is part of my “Visual Hook Guide Series“, through which you can find WooCommerce hooks quickly and easily by seeing their actual locations (and you can copy/paste). If you like this guide and it’s helpful to you, let me know in the comments! […]
  • WooCommerce: Disable Variable Product Price Range $$$-$$$
    You may want to disable the WooCommerce variable product price range which usually looks like $100-$999 when variations have different prices (min $100 and max $999 in this case). With this snippet you will be able to hide the highest price, and add a “From: ” prefix in front of the minimum price. At the […]
  • WooCommerce: Hide Price & Add to Cart for Logged Out Users
    You may want to force users to login in order to see prices and add products to cart. That means you must hide add to cart buttons and prices on the Shop and Single Product pages when a user is logged out. All you need is pasting the following code in your functions.php (please note: […]
  • WooCommerce: Add Custom Field to Product Variations
    Adding and displaying custom fields on WooCommerce products is quite simple. For example, you can add a “RRP/MSRP” field to a product, or maybe use ACF and display its value on the single product page. Easy, yes. Unfortunately, the above only applies to “simple” products without variations (or the parent product if it’s a variable […]
  • WooCommerce: Show Number Of Products Sold @ Product Page
    WooCommerce database already stores the number of products sold for you. Therefore, you may want to show such number on the product page, close to the Add To Cart button. As we’ve seen in my book Ecommerce and Beyond, showing the number of sales for each product can increase your sales conversion rate. All you […]

Rodolfo Melogli

Business Bloomer Founder

Author, WooCommerce expert and WordCamp speaker, Rodolfo has worked as an independent WooCommerce freelancer since 2011. His goal is to help entrepreneurs and developers overcome their WooCommerce nightmares. Rodolfo loves travelling, chasing tennis & soccer balls and, of course, wood fired oven pizza. Follow @rmelogli

113 thoughts on “WooCommerce: Remove Additional Information Tab @ Single Product

  1. Hi Rodolpho,

    I hope all is well and thank you for sharing your knowledge with us all. I have used the code to remove the additional information tab on the single product page but when I check it, my footer has been pulled up to cover almost all the single product page and changed the payout of it. Any idea what is going on and how to rectify this please?

    Thanks in advance,
    Kingsley

    1. Hello Kingsley, you probably also need to add some CSS to “clear:both” the footer once the tabs are gone. Hope this helps!

  2. Hey Rodolfo, thanks very for this tip. Just one extra question:

    As expected, I’m left with just a “Description” tab. But now I have the word “Description” in the last remaining tab AND in larger font at the beginning of the actual description text. I hid the label row of the tab with CSS:

    .wc-tabs {
    display: none;
    }

    This works, but it also removes the top border of the Description area. I can’t target the H2 tag around the tab title as it has no class. Could I also do this in PHP somehow?

    Thanks!

    H.

  3. Hi Rodolpho, many thanks for your great job. I am using shortcode on my home page to display woocommerce product. Is this supposed to work even using shortcode because it isn’t working for me now.
    Thank you in advance.

    1. It should, but not 100% sure

  4. That is amazing. Thanks a lot. Works on my theme πŸ™‚

    1. Cheers!

  5. thanks for php hook! wonderful! and all website is very useful, many thanks for author!

    1. Thank you!

  6. Thanks for the info on Yith having a tab plugin. I didn’t realize it and I have a club account with them.

    1. Great!

  7. Thank you so much! πŸ™‚

    1. Yay!

  8. Code works perfectly fine for me.

    However, I am looking for a solution that hides tabs when they are empty/ don’t have any content – both custom and predefined tabs.
    If they are not empty, the tabs should show.

    Will you happen to know the condition for to achieve this?

    1. Hello Richard, thanks so much for your comment! Yes, this is definitely possible, but I’m afraid it’s custom work. If you’d like to get a quote, feel free to contact me here. Thanks a lot for your understanding!

  9. Doesnt work on mobile version of astra

    1. Ask Astra support please

  10. Worked like a charm on Divi 4.0 and WordPress 5.2.4 on October 17th 2019

    1. Awesome!

  11. I have variable product, product has weight info as well, which will be displayed in the Additional Information tab.
    I would like to keep the Additional Information Tab, but just show the Weight info

    1. Derred, thanks so much for your comment! Yes, this is definitely possible, but I’m afraid it’s custom work. If you’d like to get a quote, feel free to contact me here. Thanks a lot for your understanding!

  12. Thank you, worked for me! March 28, 2019 using Elementor plugin and Layers for Elementor child theme.

    1. Nice!

  13. thanks for sharing mate, worked like a charm.

    1. Excellent!

  14. It doesn’t work! I put the code inside the functions.php inside my child theme but nothing happens.
    if I use code to hide specific fields (eg.
    function custom_override_checkout_fields( $fields ) {
    unset($fields[‘billing’][‘billing_company’]);
    unset($fields[‘billing’][‘billing_address_1’]);
    unset($fields[‘billing’][‘billing_address_2’]);
    ….
    }
    that works! But I cannot delete the entire tab!

    1. Giorgos, works for me, so there is something else wrong in your setup

  15. Worked great for me with wordpress 5.1 and latest version of Woocommerce v3.5.5
    I am also using Divi, with some child theme I’ve created.

    Thanks keep up the good work!

    1. Awesome!

  16. Hi Rodolfo! Thanks for sharing…worked a treat!

    1. Great!

  17. This is still working like a charm at 12-2018. Thanks a lot

    1. Nice πŸ™‚

  18. Thank you for this! It works great on WordPress 5.0, using Storefront theme 2.4.1.

    1. Awesome πŸ™‚

  19. Hi Rudolfo. I tried adding the code into my css in my Flatsome theme. “There are 17 errors which must be fixed before you can save.” https://ibb.co/ezk5SK is an image of the error message, and what was highlighted as errors. Thanks if you have time to help fix this. Due to my hosting, I don’t have access to my PHP.

    1. Hello Rona, you need to place PHP snippets in your child theme’s functions.php file – if you need more guidance, please take a look at this video tutorial: https://businessbloomer.com/woocommerce-customization-hangout/. Hope this helps!

  20. Works perfectly, thanks Rodolfo!!

    1. Brilliant πŸ™‚

  21. Hi Rodolfo, thanks for this. Just to let you know this worked perfectly for me on Woocommerce 3.3.2.

    1. Worked for me. Removed Additional info tab which showed annoying shipping information which was confusing to the customer.

  22. Hello. I have a single variable product and use “Custom Product Tabs for WooCommerce” for additional custom tabs. I tried the CSS route via the following code to remove the “Additional Information” tab that automatically appears as a variable product. It successfully removes the tab, however oddly the default content previously contained in the “Additional Information” tab displays until you click any tab even though there is no “Additional Information”. Any idea?

    .additional_information_tab {
    display: none;
    }

    1. Wade, please use the PHP snippet I provided, and not CSS πŸ™‚

  23. hi dude, is possible to just hide the tab of additional information for some users? i mean hide to all people without suscribtion, but show only to members (clients,suscribers,admin)

  24. How to remove “additional information” tab @ variable product?
    I am adding custom tab “how to use”, and I would like to remove ‘additional information’ tab from my product.

    1. Hey Joe, this snippet does just that πŸ™‚

  25. Hi Rodolfo,

    Just installed the WooCommerce plugin on my site and used this php code to remove the Additonal Information tab, Thank you!!

  26. Hi Rodolfo,

    Tried adding this code to my child theme functions.php, unfortunately it temporarily broke my site, lol. Needed to go in via FTP and remove the code, not even the admin page would show.

    Error was something like :

     Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting '-' or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) 

    Any idea why this would have happened?

    Regards,
    Liam.

    1. I’m running WC 3.2.6 and PHP 7.1.4 πŸ™‚

      1. Hey Liam, thanks for your comment! Just retested on 3.2.6 and I got no error. You must have pasted an extra space or something like that – try again:)

  27. Amazing as always Rodolfo!

    I needed to hide this tab and to create a new tab showing different information on my Product page, and your post was extremely helpful.

    Thanks a lot!

  28. works fine! thank you

  29. It works, but it allows the “Related Products” title to move way up under the product image, sometimes that title is even between the product image and the product description/information.

    Must be my theme or something..too bad.

    Thanks anyways!

    1. Ashly, thanks for your comment! Yes, it must be your theme – try adding this CSS:

      .related.products {
      clear:both;
      }
      
  30. thanks :). it worked

  31. Hi, Is it possible to just hide the [Additional Information] header on the checkout process?

  32. Thank you kindly for this. πŸ™‚

  33. Worked like a charm for me! Don’t exactly know HOW it worked (ask me again in 6 months when I’ve finished my courses!) but – it worked. That’s all I care about! Simple. Effective. Awesome. Now – your next mission should you choose to accept it – write some code to make me look 30 again…! πŸ™‚

    1. Ahah brilliant, thanks Nicola πŸ™‚

  34. Didn’t work for me. When I enter the code at the end of /home/uscenes/public_html/wp-content/themes/idstore-child/functions.php the website goes offline and I just have a blank page with this at the top: Parse error: syntax error, unexpected ‘{‘ in /home/uscenes/public_html/wp-content/themes/idstore-child/functions.php on line 282

    When I enter the code into functions.phi it highlights this error: Syntax error, unexpected ‘{‘

    Any idea what might help?

    Thank you

    1. Hey Mat, thanks for your comment! There is no syntax error in my snippet, so you probably you forgot to paste the final “}”. Let me know πŸ™‚

    2. Thanks for the response Rodolfo. I had actually put the code in the wrong place. We have had various people do work on the site in the past, so there are a few functions.php files. I think I may have got the above error because I pasted in the wrong code too.

      Anyway, I found the right one and it works, thanks so much, product pages look much better now. πŸ™‚

      1. Good to know! πŸ™‚

  35. Excellent ! Thank you very much !

  36. Awesome!!!!

    1. Thanks for your feedback Martin πŸ™‚

  37. Worked like a charm. Thank you!

    1. Cheers Peter, thanks so much for your feedback!

  38. Neither works for me when I add to child theme. Any ideas why?

    1. Thanks for your comment Dana! It could be that your theme has customized the Woo tabs, and therefore my default snippet doesn’t work πŸ™‚

  39. Sorry, that’s the “Related items” title that is all squished up in the gutter

    1. Thanks for your comment Angela! I can’t see your site but it’s as simple as adding the following CSS to the “Related Products” div:

      clear:both
      
    2. Hi Rodolfo,

      Thanks for your help! Can you please explain how to add the CSS to the “Related Products” div?

      I have the same issue as Angela – thanks!

      1. This is custom to your specific theme, so I can’t help here via the comments. Thanks a lot for your understanding! ~R

  40. Hello Rodolfo,

    Thanks so much for this post! The php solution worked a treat… except. The products table was removed (excellent!) but now the “Related products” title is still showing, but now it’s all squished up in the gutter between the main product image and the product text area.

    Any assistance much appreciated!

    Thanking you,
    Angela

  41. Hi thanks for this post.

    I was able to have the tab removed but not the actual additional information. Any way to do that? Or to have the additional information and its tab no open by default?

    1. Hey Carmine, thanks for your comment! From what I see, the Additional Info tab is still there. It seems you’ve removed the Description Tab instead, and you even have a PHP error. Try again and let me know πŸ™‚

  42. Thank you, CSS fix worked!

    1. Awesome Reinout, thanks for your feedback!

  43. Thanks for the post. Still works in January 2017.

    1. Brilliant, thanks so much for your feedback Anon!

  44. Thank you so much. Works neat. I wasn’t looking for css-only. Using function is definitely a better solution πŸ™‚

    1. Awesome, thank you so much for your feedback!

  45. Hi,
    How to remove the Addtional Information block in checkout page ..i want remove that entire additional information block with its fields also…

    how can i do that..
    help me out

    1. Hi Venky, thanks for your inquiry! Check this out: https://bryceadams.com/remove-additional-notes-woocommerce-checkout/ – hope it helps πŸ™‚

  46. Thanks for the info – useful. I’m using the css option and it works but not on a mobile phone. Any suggestions?

    Thanks again.

    1. Cool, thanks for your feedback! Possibly there is a CSS media query that is overriding my CSS. Try this:

      html li.additional_information_tab {
      display: none !important;
      }
      

      If this does not work, then your theme is either changing class to the element, and therefore my CSS won’t work. Send me your website address in case and I’ll send you a quick fix!

      Hope this helps πŸ™‚

      1. Thanks so much for your reply – great to have your help.

        Unfortunately that didn’t work. I’m using the Divi site here on a work in progress site:

        https://lasaviahealing.nz/product/cleavers-self-relianceasking-for-help/

        There is no Additional Info Tab with the css code until the screen gets small enough at the point where the tabs change form being horizontal to vertical. I’ve tried using FireBug but can’t seem to find the right css code.

        Thanks for any help …

        Neal

        1. Hey Neal, thanks for your comment! Your theme gives {display: block !important;} to that element on small screens so possibly you haven’t given enough “CSS priority” to my CSS snippet. Try this:

          html li.additional_information_tab {
          display: none !important;
          }
          
          1. Thanks again for your help – though unfortunately that still didn’t remove the Additional Tab from a phone screen.

            I tried the php soliution and that works fine across all screen sizes, so maybe I’ll just leave it at that. Thank you so much for your time.

            Have a great day …

            Neal

            1. Awesome Neal! I gave for granted the PHP snippet didn’t work for you and you were looking for a CSS fix instead. The PHP solution is WAY better than the CSS one – so glad you got that to work! Thank you πŸ™‚

  47. Hi Rodolfo,
    Many thanks. Worked perfectly!

  48. Thanks – worked great!

    1. You’re welcome Dave πŸ™‚

  49. Thank you! πŸ™‚

    1. You’re welcome Greg! Have a great day πŸ™‚

  50. Hi, is it posible to show all the content but without tabs? just like sections in the product page? I mean, all the content visible with scroll.

    1. Yes Vlad, I’m sure there is a way to do that – unfortunately this is custom and unless I decide to make a post in the future I can’t help now πŸ™‚ Thank you!

  51. Most useful Rodolfo, just what I was trying to achieve.

    Many thanks…

    1. Cheers Ken πŸ™‚ Best of luck with your website!

Questions? Feedback? Customization? Leave your comment now!
_____

If you are writing code, please wrap it like so: [php]code_here[/php]. Failure to complying with this, as well as going off topic or not using the English language will result in comment disapproval. You should expect a reply in about 2 weeks - this is a popular blog but I need to get paid work done first. Please consider joining the Business Bloomer Club to get quick WooCommerce support. Thank you!

Your email address will not be published. Required fields are marked *