Hide Additional Info tab from Single Product page
-
Hi, I would like to hide the 2nd tab from the product page.
I have now:
– Product Description (Beschreibung)
– Additional Info (ZUSÄTZLICHE INFORMATION), and
– Reviews (BEWERTUNGEN)
I do not need the Additional Info.
I have tried to hide it with a custom CSS:
.single-product .tab-additional_information {
display: none;
}
but it did not work.
Could you please advise?
Thanks,
Julia
Attachments:
You must be
logged in to view attached files.
Hi,
Here is an article from WooCommerce documentation that may help you customize your product page tabs https://docs.woocommerce.com/document/editing-product-data-tabs/
Regards
Hello,
thanks, based on this article I put to custom JS the following:
add_filter( ‘woocommerce_product_tabs’, ‘woo_remove_product_tabs’, 98 );
function woo_remove_product_tabs( $tabs ) {
unset( $tabs[‘additional_information’] );
return $tabs;
}
Unfortunately it does not hide the unnecessary tab… 🙁
Any idea what I am doing wrong?
Thanks,
Julia
Hi,
It is a PHP code and you need to place it to the functions.php
file in the child theme and not into the Custom JS section.