Remove Additional Information Tab on Product Page
Hi Jennifer … I’ve added code to try and remove the Additional Information tab from the product page. These don’t seem to work. Any suggestions?
ADDITIONAL CSS:
/* Hide the additional information tab */
li.additional_information_tab {
display: none !important;
}
FUNCTIONS.PHP
// Remove the additional information tab
function woo_remove_product_tabs( $tabs ) {
unset( $tabs[‘additional_information’] );
return $tabs;
}
add_filter( ‘woocommerce_product_tabs’, ‘woo_remove_product_tabs’, 98 );
This is a little different, but you can try this
add_filter( ‘woocommerce_product_tabs’, ‘woo_remove_product_tabs’, 98 );
function woo_remove_product_tabs( $tabs ) {
unset( $tabs[‘additional_information’] ); // Remove the additional information tab
return $tabs;
}
Also be sure to clear your cache. Some hosts have a hosting cache and changes made in the files will not show until that is done. Let me know if that does not work and Ic an make this private and hop on.
Please login or Register to submit your answer