Hi,
We are trying to rename our “Additional information” tab to “Dimensions & Care Info”
I have got this working on our local server using only “Dimensions” however if I try with any other longer text string it oes not work…?
Can you help?
php. I have used in the child theme functions.php file is as below
We’d also like to keep this tab expanded by default as well – how would we do that ?
<?php
add_filter( 'woocommerce_product_tabs', 'woo_rename_tabs', 98 );
function woo_rename_tabs( $tabs ) {
$tabs['description']['title'] = __( 'More Information' ); // Rename the description tab
$tabs['additional_information']['title'] = __( ‘dimensions’ ); // Rename the additional information tab
return $tabs;
}
add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
function woo_remove_product_tabs( $tabs ) {
unset( $tabs['reviews'] ); // Remove the reviews tab
return $tabs;
}
?>
Cheers
C
Attachments:
You must be
logged in to view attached files.