Home › Forums › Ticket Products › Event Tickets Plus › Tickets to Places in List View
- This topic has 4 replies, 2 voices, and was last updated 6 years, 2 months ago by John Paul.
-
AuthorPosts
-
February 8, 2018 at 11:36 am #1448102John PaulParticipant
Hi, I added the following code to the top of my functions.php file to change the wording from ‘tickets left’ to ‘places left’.
add_filter( ‘tribe_tickets_buy_button’, ‘changes_button_text’, 11, 2 );
function changes_button_text( $html ) {
$html = str_replace("tickets left", "places left", $html); return $html;
}
However, it does not work across all event listings. Please see link below. As you navigate through the events you will notice that some say ‘places left’ and others say ‘tickets left’.
https://webnprosper.staging.wpengine.com/events/photo
https://webnprosper.staging.wpengine.com/events/list
(careful if navigating around as some of the top menu links will take you to the live site)
Can you advise why this happening?
Cheers
February 8, 2018 at 11:53 am #1448129John PaulParticipantha! I noticed that I needed to also change ‘ticket’ as well as the plural ‘tickets’
sorry to bother you …
cheers
February 8, 2018 at 12:21 pm #1448203CourtneyMemberNo worries John. I’m glad this worked out. I’ll close out this thread for now.
Thanks
Courtney 🙂March 2, 2018 at 8:35 am #1468293Support DroidKeymasterHey 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 -
AuthorPosts
- The topic ‘Tickets to Places in List View’ is closed to new replies.