Posted: July 12, 2018 at 2:51 pm
I am trying to change the wording on the registration form from “Attendee #1” to “Ticket #1” I have used the code suggested in another forum https://gist.github.com/lorenzocaum/4be687c7c9fcb6b779e4#file-new_gist_file-md But when I add the code below – it causes an issue with the site and the page content does not load. What am I missing? Below is the code I am using. //* Adjust the messaging for attendee 1 in registration checkout |
|
Hi there, You would be better using something like this: https://gist.github.com/Pebblo/4c819243acfee1ce36b1 Change line 11: https://gist.github.com/Pebblo/4c819243acfee1ce36b1#file-functions-php-L11 To You can either change line 10 to us |
|
Thanks for your quick response – I’ve tried this (code below) but it did not change anything. What have I done wrong? function mycustom_filter_gettext( $translated, $original, $domain ) { // This is an array of original strings // See if the current string is in the $strings array return $translated; add_filter( ‘gettext’, ‘mycustom_filter_gettext’, 10, 3 ); |
|
Hmm, ok I did a little digging and it’s not something you have done, it’s from a change we’ve made to how that string is translated. You’ll now need to use a different function for the Something like this: https://gist.github.com/Pebblo/de0b054ecaeb7d333ca1b823f2b02efa You can remove the first function if you wish, or use it to translate other strings, it just will not work the string you are currently wanting to change. (For any translators reading this we switched from |
|
Thank you – that’s worked! |
|
The support post ‘Change Attendee #1 to Ticket #1’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.