Remove "Available Tickets"
-
Hello,
I’m using Event Espresso 4 Decaf and all was well.
I had to update my theme and I re-entered the following text into my theme’s function.php to remove some text on the Event page (which worked before my update):function mycustom_filter_gettext( $translated, $original, $domain ) {
// This is an array of original strings
// and what they should be replaced with
$strings = array(
‘Available Tickets’ => ‘Available Options’,
‘Price’ => ‘ ‘,
‘Ticket Details’ => ‘ ‘,
‘Ticket Name and Description’ => ‘ ‘,
‘ / ticket’ => ‘ ‘,
‘Qty*’ => ‘ ‘,
);// See if the current string is in the $strings array
// If so, replace its translation
if ( isset( $strings[$original] ) ) {
// This accomplishes the same thing as __()
// but without running it through the filter again
$translations = get_translations_for_domain( $domain );
$translated = $translations->translate( $strings[$original] );
}return $translated;
}However, this solution is no longer working. So I followed the instructions in this link: https://eventespresso.com/wiki/how-to-change-wording-with-poedit/
While the instructions tell you to include the new language files in uploads/espresso/languages, my site doesn’t include an “espresso” file in the “upload” directory… I added it to the plugins languages folder but nothing happened. I also created a directory /espresso/languages in my uploads folder and nothing happened….
Please advise. The event isn’t really a “Ticket” based event so we would like that verbiage removed.
https://www.lotusvillageyoga.com/events/vinyasa-flow-yoga/#vinyasa-flow-yoga
Thanks!
- The topic ‘Remove "Available Tickets"’ is closed to new replies.