woocommerce

Method to delete additional information tag of WooCommerce

Many friends use WordPress and WooCommerce to build their own independent foreign trade stations, and then a tag with other information will usually appear on the product details page, called Additional Information in English, as shown in the following figure. My father teaches you how to delete this Additional Information tag.
 Additional Information Label

There are two ways to delete the Additional Information tag.

1. Use css code hiding, so that users can't see it, but the code is still there.

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

The above specific code needs to determine the corresponding class according to your theme, so you may not take effect if you copy and paste it directly into the style sheet of your website.

2. Use code to mask output

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

Copy the above code, paste it into the website theme function and save it.

The second method is recommended for beginners. You don't need to judge the subject code, just copy and paste it directly. If the article is helpful to you, remember to help promote the notes of the father building the site.

1.8/5 - (41 votes)
Scroll to top