Home › Forums › WoodMart support forum › How do I remove Description & Additional Information › Reply To: How do I remove Description & Additional Information
dido76bg
Replace previous css with this one:
.tabs-layout-tabs .tabs li.description_tab,.tabs-layout-tabs .tabs li.additional_information_tab,.woodmart-tab-wrapper #tab-description,,.woodmart-tab-wrapper #tab-additional_information {display:none !important}
And one more time – it is better to use functions because you can add conditions. With css the code is still there. It is just not visible for the customer.
function woo_remove_custom_product_tabs( $tabs ) {
unset( $tabs[‘description’] );
unset( $tabs[‘additional_information’] );
return $tabs;
}
add_filter( ‘woocommerce_product_tabs’, ‘woo_remove_custom_product_tabs’, 98 );