Home › Forums › Ticket Products › Event Tickets Plus › Change text and Remove qty available
- This topic has 3 replies, 1 voice, and was last updated 9 years, 1 month ago by
Deb.
-
AuthorPosts
-
March 11, 2017 at 9:37 am #1252940
Deb
ParticipantHello
I have a couple of questions about my purchase
1.) I tried changing the word ‘Tickets’ on the Course page to ‘Course Registration’ I saw a thread in the form that indicated to use the translate function and I posted this code snippet
add_filter('gettext', 'theme_filter_text', 10, 3);function theme_filter_text( $translations, $text, $domain ) {
// Copy and modify the following if {} statement to replace multiple blocks of text
// Match the text you want you want to translate, preferably also match the text domain
if($text === 'Tickets' && $domain === 'tribe-event-tickets') {// The custom text you want instead
$text = 'Course Registration';}
return $text;
}
It doesnt seem to work. Can you please let me know what I need to change or if there is a better way to do it that doesnt have to be put into a separate folder
2.,) Is there a way to CSS out the number of tickets available? I see the following css. I dont want to change the template if possible and the cssisnt working
/* Hide Number of Available Tickets */
.tribe-events-tickets .tribe-tickets-remaining {
display: none;
}
3,) During SQA, we identified you can add a malformed e mail address to the ticket box. Is there a way to fix this?
Thanks.
DaveMarch 13, 2017 at 2:10 pm #1253520Nico
MemberHi there Dave,
Thanks for getting in touch with us! I can help you on this…
1.) I tried changing the word ‘Tickets’ on the Course page to ‘Course Registration’…
Just give the code in this article a try and let me know if it works for you → Change the wording of any bit of text or string. The one you shared seems to be an adapted version of the same snippet, maybe it’s a bit outdated.
2.,) Is there a way to CSS out the number of tickets available? I see the following css. I dont want to change the template if possible and the cssisnt working
Sure, can you try the following CSS snippet:
.tribe-tickets-remaining {
display: none !important;
}
Please let me know about if the above helps,
Best,
NicoApril 4, 2017 at 9:35 am #1264220Support Droid
KeymasterHey 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 ‘Change text and Remove qty available’ is closed to new replies.
