Hello, I would like to change the title “Produits apparentés” above related products on the product pages. In which folder is the .po file to replace the translation located?
Thank’s in advance !
Best regards
Hey laboiteapixels12,
Thank you for the inquiry.
Which language would you like to translate it to? Instead of editing the file directly, try to use the Loco Translate plugin in order to translate that specific text to whichever language you want it translated.
// https://wordpress.org/plugins/loco-translate/
Best regards,
Ismael
Hi, Ismael,
I only want to replace this title. It bothers me to install a plugin for so little … I would prefer to replace the text directly in the file. But I don’t know which one it is and in which directory it is.
Thank’s for helping me,
Audrey
Hi,
Alright. You have to modify the enfold\config-woocommerce\config.php file and this code around line 1289.
$output .= "
<h3>".(__('Related Products', 'avia_framework'))."</h3>
";
Another plugin that might be of use is the following.
// https://wordpress.org/plugins/say-what/
Best regards,
Ismael
Hello,
Thanks for your help. I found another code that works on a forum. To be placed in the functions.php file of the child theme :
add_filter('gettext', 'wpm_traduction');
add_filter('ngettext', 'wpm_traduction');
function wpm_traduction($texte) {
$texte = str_ireplace('Produits apparentés', 'Tap your custom text here', $texte);
return $texte;
}
It worked :)
Thank’s again and have a good day,
You can close this ticket if you please;
Audrey
Hi Audrey,
We’re happy to hear that :)
Thanks for using Enfold and have a great day!
Best regards,
Nikko