Yes, there is a really helpful code snippet for this in their documentation (included snippet below). You can add additional $translated lines to the snippet, as below, to translate multiple strings, and you would add this code snippet to your child theme’s functions.php file or (if you prefer or don’t have a child theme) use the Code Snippets plugin:
add_filter('gettext', 'translate_text');
functiontranslate_text($translated) {
$translated = str_ireplace('Submit Jobs', 'Submit a Gig', $translated);
$translated = str_ireplace('Company Details', 'Enterprise Details', $translated);
return $translated;
}
Hey, @stanleyuroy11 !
I noticed @hastibe was able to answer your questions correctly. Thanks @hastibe! 🙏 .
If you have any other questions, @stanleyuroy11 , please let us know!
Hi, i have the same problem and tried the code snippet but didnt work (i may did it wrong?)
i want to replace the SPAN “All Regions” in this page https://aube-interim.com/offres-emploi
Could you guys help me ? thank you!
Hello @tomwallen,
Have you tried using the snippet linked above and replacing the Submit Jobs', 'Submit a Gig' and 'Company Details', 'Enterprise Details'bits with All Regions and whatever you want to display instead?
Let us know if it works!
Hi @erania-pinnera, thanks for the fast reply !
yep i tried this snippet in the child theme folder in functions.php > https://ibb.co/fQWcK31
But it returns a critical error. May i write it in a bad way?
Thank you!
Hi @tomwallen –
It looks like there is actually a syntax error in the snippet shared above:
functiontranslate_text($translated)
it should instead read:
function translate_text($translated)
Once you make that adjustment, the critical error should go away.
Hi @lastsplash
Oh yes, this…
Seems to work perfectly fine now! Thank you a lot !
Hi @tomwallen,
Seems to work perfectly fine now! Thank you a lot!
That’s great! Happy we could help! I’ll go ahead and mark this thread as resolved. Should you have any further inquiries or concerns, please don’t hesitate to open a new thread.