Change RSVP Now button

Home Forums Ticket Products Event Tickets Plus Change RSVP Now button

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1329586
    interstrategy
    Participant

    I 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 Registration

    Thanks

    #1329885
    Geoff B.
    Member

    Good 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.

    #1332035
    interstrategy
    Participant

    On 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!

    #1332645
    Geoff B.
    Member

    Good 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.

    #1341122
    interstrategy
    Participant

    This reply is private.

    #1341590
    Geoff B.
    Member

    This reply is private.

    #1341658
    interstrategy
    Participant

    This reply is private.

    #1342202
    Geoff B.
    Member

    This reply is private.

    #1342590
    interstrategy
    Participant

    This reply is private.

    • This reply was modified 8 years, 8 months ago by interstrategy.
    #1342883
    Geoff B.
    Member

    This reply is private.

    #1344612
    Geoff B.
    Member

    Good 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.

    #1344849
    interstrategy
    Participant

    That last snippet work great, thanks!

    #1345022
    Geoff B.
    Member

    Hey 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.

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Change RSVP Now button’ is closed to new replies.