Hi there,
I have been adding a child theme and now I would like to add the following code. However it’s not working. See below current coding in Child theme functions file. Do I perhaps need to get rid of the /* + */ signs? ( I dare not to do it as it might give an error code).
Many thanks, Alexandra
<?php
/*
add_filter( ‘woocommerce_product_tabs’, ‘techglimpse_rename_tab’, 98);
function techglimpse_rename_tab($tabs) {
$tabs[‘additional_information’][‘title’] = ‘Details’;
return $tabs;
}
*/
Hi Thijsalex!
Yes, you should add the code as following
add_filter( 'woocommerce_product_tabs', 'techglimpse_rename_tab', 98);
function techglimpse_rename_tab($tabs) {
$tabs['additional_information']['title'] = 'Details';
return $tabs;
}
After PHP opening tag.
Best regards,
Yigit
Sorry am not a geek, but I added it now as per below, but then the site was completely gone and had to upload the original function.php file via Filezilla to get the site working again. So there is still something not right.
<?php
add_filter( ‘woocommerce_product_tabs’, ‘techglimpse_rename_tab’, 98);
function techglimpse_rename_tab($tabs) {
$tabs[‘additional_information’][‘title’] = ‘Details’;
return $tabs;
}
Hi,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
Login credentials include:
Best regards,
Yigit