Hi Devin,
Thank you for your reply! I tried this code and similar to the issue I was having with the other code, when I add it into the Custom Functions plugin, it says “Sorry, but your code causes a “Fatal error”, so it is not applied! Please, check the code and try again.”
Given this has happened with both codes, I’m thinking I’m doing something wrong.
Lines 1 – 12 of my Custom Functions PHP code are:
function my_give_text_switcher( $translations, $text, $domain ) {
// changes the “Donations” text in multiple places
if ( $domain == ‘give’ && $text == ‘%1$s of %2$s raised’ ) {
$translations = __( ‘%1$s of %2$s’, ‘give’ );
}
if ( $domain == ‘give’ && $text == ‘Donation Total:’ ) {
$translations = __( ‘Your Total:’, ‘give’ );
}
return $translations;
}
add_filter( ‘gettext’, ‘my_give_text_switcher’, 10, 3 );
When I go to add new code in, do I just add it to the line below? Do I leave any space? Is there anything I have to do when copying this new code into the Custom Functions PHP?
Thank you!!!