Hi there,
This can be achieved with a code snippet we have available located here:
https://github.com/impress-org/givewp-snippet-library/blob/master/translation-snippets/simple-translation-snippet.php
Here’s an example of how that would look for your purposes:
function my_another_give_text_switcher($translations, $text, $domain)
{
// changes the "Donations" text in multiple places
if ($domain == 'give' && $text == 'ID') {
$translations = __('Name', 'give');
}
return $translations;
}
add_filter('gettext', 'my_another_give_text_switcher', 10, 3);
If you need assistance implementing custom code on your website we have this guide:
https://givewp.com/documentation/resources/adding-custom-functions-to-your-wordpress-website/
Please note that this code snippet is provided as an example of how you can extend Give with code. It’s up to you to implement and customize to your liking. We cannot provide support for custom code on your website, only the code that we create and distribute.
?We also recommend you first make these changes on a staging site or local development environment before running this on your live site, to make sure everything goes smoothly.
-
This reply was modified 4 years, 11 months ago by gsamsmith.