Home › Forums › Ticket Products › Event Tickets Plus › Change RSVP Now button
- This topic has 13 replies, 2 voices, and was last updated 8 years, 7 months ago by
interstrategy.
-
AuthorPosts
-
August 2, 2017 at 10:00 am #1329586
interstrategy
ParticipantI can’t seem to get the buttons, RSVP Now or Confirm RSVP changes.
I’m using the following snippet to update the wording in other sections:
// Modify RSVP to Registration
function tribe_custom_theme_text ( $translation, $text, $domain ) {// Put your custom text here in a key => value pair
// Example: 'Text you want to change' => 'This is what it will be changed to'
// The text you want to change is the key, and it is case-sensitive
// The text you want to change it to is the value
// You can freely add or remove key => values, but make sure to separate them with a comma
// This example changes the label "Venue" to "Location", and "Related Events" to "Similar Events"
$custom_text = array(
'RSVP' => 'Register',
'Tickets' => 'Register and pay online.',
'Send RSVP confirmation to:' => 'Send registration confirmation to:',
);// If this text domain starts with "tribe-", "the-events-", or "event-" and we have replacement text
if( (strpos($domain, 'tribe-') === 0 || strpos($domain, 'the-events-') === 0 || strpos($domain, 'event-') === 0) && array_key_exists($translation, $custom_text) ) {
$translation = $custom_text[$translation];
}return $translation;
}
add_filter('gettext', 'tribe_custom_theme_text', 20, 3);function tribe_custom_theme_text_with_context ( $translation, $text, $context, $domain ) {
// Put your custom text here in a key => value pair
// Example: 'Text you want to change' => 'This is what it will be changed to'
// The text you want to change is the key, and it is case-sensitive
// The text you want to change it to is the value
// You can freely add or remove key => values, but make sure to separate them with a comma
// This example changes the label "Venue" to "Location", and "Related Events" to "Similar Events"
$custom_text = array(
'RSVP' => 'Registration',
);// If this text domain starts with "tribe-", "the-events-", or "event-" and we have replacement text
if( (strpos($domain, 'tribe-') === 0 || strpos($domain, 'the-events-') === 0 || strpos($domain, 'event-') === 0) && array_key_exists($translation, $custom_text) ) {
$translation = $custom_text[$translation];
}
return $translation;
}
add_filter('gettext_with_context', 'tribe_custom_theme_text_with_context', 21, 4);
Which I’m happy with, but now I want to also change
RSVP NOW to –> Register Now
Confirm RSVP to –> Confirm RegistrationThanks
August 2, 2017 at 10:31 pm #1329885Geoff B.
MemberGood evening Greg and welcome to the Events Calendar Support forum!
Thank you for reaching out to us.
I would love to help you with this topic.You have the right idea, the correct snippet for your needs should be https://gist.github.com/andrasguseo/29903a974cb84060957881c17613c278#file-change-wording-with-context-php
However, it seems odd that you should have several instance of it.
Could you please send me a copy of the latest version of your WordPress theme / child theme via a link to a .zip file link (stored Dropbox or Google Drive) so that I can run some tests on my end ? I recommend a private reply for that purpose.
Please ensure you are using the latest files as found on your actual website.
This way I will get access to any updates or customizations you might have made.As a first troubleshooting step, could you please provide us with your complete system information in a private reply using the instructions found in the following link?
https://theeventscalendar.com/knowledgebase/sharing-sys-info/
Hang in there!
Geoff B.
August 8, 2017 at 5:29 am #1332035interstrategy
ParticipantOn 2 Aug 2017, at 23:32, The Events Calendar wrote:
> Could you please send me a copy of the latest version of your
> WordPress theme / child theme via a link to a .zip file link (stored
> Dropbox or Google Drive) so that I can run some tests on my end ? I
> recommend a private reply for that purpose.Done!
> As a first troubleshooting step, could you please provide us with your
> complete system information in a private reply using the instructions
> found in the following link?Done!
August 8, 2017 at 11:03 pm #1332645Geoff B.
MemberGood evening Greg,
For some reason, I am not seeing the google Drive or Dropbox link.
Would you mind trying to send it using the forum (web) interface as opposed to the e-mail reply ?On the plus side, I now have your system information. Thank you!
Hang in there!
Geoff B.
August 28, 2017 at 6:47 am #1341122interstrategy
ParticipantThis reply is private.
August 28, 2017 at 11:16 pm #1341590Geoff B.
MemberThis reply is private.
August 29, 2017 at 5:25 am #1341658interstrategy
ParticipantThis reply is private.
August 29, 2017 at 11:24 pm #1342202Geoff B.
MemberThis reply is private.
August 30, 2017 at 11:20 am #1342590interstrategy
ParticipantThis reply is private.
-
This reply was modified 8 years, 8 months ago by
interstrategy.
August 30, 2017 at 11:11 pm #1342883Geoff B.
MemberThis reply is private.
September 4, 2017 at 3:28 pm #1344612Geoff B.
MemberGood evening Greg,
I made another revision to the snippet and I believe this one cover all grounds: https://gist.github.com/GeoffEW/0e6fe4cf5fb894f034caa9bd7887b6bf
Let me know how that works for you.
Cheers,
Geoff B.September 5, 2017 at 8:06 am #1344849interstrategy
ParticipantThat last snippet work great, thanks!
September 5, 2017 at 11:05 am #1345022Geoff B.
MemberHey Greg,
I am super stoked to hear that.
You are welcome back in our support forums any time 🙂
For now, I am going to close this thread.
Have a great week!
Geoff B.
-
This reply was modified 8 years, 8 months ago by
-
AuthorPosts
- The topic ‘Change RSVP Now button’ is closed to new replies.
