Not all the strings (wording) are obvious, so if the wording doesn’t change let us know, as some strings have hidden symbols to allow for dynamic changing of the strings.
If you have any further queries regarding this please just ask.
It may help to see the code you’re trying in functions.php to know for sure, but my guess is since they’re case sensitive, it might be you have ‘Upcoming’ where it should be ‘upcoming’.
Here’s my code:
function mycustom_filter_gettext( $translated, $original, $domain ) {
// This is an array of original strings
// and what they should be replaced with
$strings = array(
‘Upcoming’ => ‘spaces still available for this class’,
‘Expired’ => ‘this class is full or not begin offered this term<br />sign up for our waiting list‘,
‘No events available…’ => ‘No upcoming classes at this time…’,
// Add some more strings here
);
// 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] );
}
The support post ‘Where can I change the wording on the Upcoming and Expired in Status Banner’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.