Remove Additional Information Tab on Product Page

QuestionsCategory: QuestionsRemove Additional Information Tab on Product Page
Carrie Hebert asked 3 years ago

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 );
 

1 Answers
Jennifer Staff answered 3 years ago

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.