Remove Product Data Tabs for Single Products

Short instruction on how easily remove the unnecessary data tabs for the WooCommerce single product

Sometimes our customers need to remove the unused data tabs for the single product for WooCommerce plugin.

Below you may find the instruction on how it can be achieved.

  • Access your theme files any convenient way (CPanel or any FTP-client).
  • Find the file: \wp-content\themes\native\functions.php
  • Open it in a text editor.
  • Find the following lines in this file:
add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );

function woo_remove_product_tabs( $tabs ) {

unset( $tabs['description'] ); 
unset( $tabs['reviews'] ); 
unset( $tabs['additional_information'] ); 

return $tabs;

}


  • Comment the following lines.
//unset( $tabs['description'] ); 
//unset( $tabs['reviews'] ); 
//unset( $tabs['additional_information'] );
  • So as the result you’ll get the following lines.
add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );

function woo_remove_product_tabs( $tabs ) {

//unset( $tabs['description'] ); 
//unset( $tabs['reviews'] ); 
//unset( $tabs['additional_information'] ); 

return $tabs;

}


  • Save the modifications done.

 

Regards, DFD Support Team

div#stuning-header .dfd-stuning-header-bg-container {background-image: url(http://nativewptheme.net/support/wp-content/uploads/2017/01/hands1.jpg);background-size: cover;background-position: center center;background-attachment: scroll;background-repeat: no-repeat;}#stuning-header div.page-title-inner {min-height: 550px;}