Archived topic
Remove Additional Information on products
3 replies · Started by Leanne on September 8, 2020
Hi,
Please go to: https://teatimehomedecor.com/product/coasters-faith-family/
You will see there is an additional information tab or section. I want to remove this.
I tried
li.additional_information_tab {
display: none !important;
}
And, it did not work.
Any suggestions?
Thanks,
Leanne
Hi Leanne,
You can try adding this PHP code.
add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
function woo_remove_product_tabs( $tabs ) {
unset( $tabs['description'] ); // Remove the description tab
unset( $tabs['reviews'] ); // Remove the reviews tab
unset( $tabs['additional_information'] ); // Remove the additional information tab
return $tabs;
}
Here's how to add PHP codes. https://docs.generatepress.com/article/adding-php/
This will remove all 3 tabs (description, reviews, additional info). If you wish to retain reviews and description you can remove them from the code which will look something like 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;
}
Let us know if this works for you.
Thank you.
That worked perfectly.
I really appreciate your quick response.
I love this theme!!!!
Leanne
Nice one! :)
No problem, We're always glad to be of any help.:)