Changing Default Text On Link To Single Event Page

Home Forums Ticket Products Event Tickets Plus Changing Default Text On Link To Single Event Page

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1272029
    Gary
    Participant

    Hi

    Is there a way to change the text on the main event page that takes you to the single event page?

    Currently on the main event page it says “Find Out More” ….we need it to say “Click Here To Book”

    Regards

    Gary

    #1272143
    Geoff
    Member

    Hi Gary,

    Absolutely, that’s totally possible! I would suggest overriding the list/single-event.php template to make that happen. You can learn more about overriding calendar templates in our Themer’s Guide, but it basically boils down to this:

    • Make a copy of the single-event.php template. It is located at wp-content/plugins/the-events-calendar/src/views/list/single-event.php
    • Make a new folder in your theme called tribe-events
    • Make a new folder in that one called list
    • Drop your copied single-event.php file in that last folder

    Now that the template is in your theme, you can modify it to suit your needs. In this case, change the “Find out more” text to the wording of your choice. That is located on Line 78 for me and looks like this:

    `<a href=”<?php echo esc_url( tribe_get_event_link() ); ?>” class=”tribe-events-read-more” rel=”bookmark”><?php esc_html_e( ‘Find out more’, ‘the-events-calendar’ ) ?> &raquo;</a>`

    Will this work for you? Please let me know. 🙂

    Cheers!
    Geoff

    #1283082
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Changing Default Text On Link To Single Event Page’ is closed to new replies.