Hello,
I’m trying to change the “Events for Month Name” heading to just “Month Name” in calendar month view – stripping out “Events for”
Using the below function, I was able to strip out “Events,” but then I’m left with “for Month Name”… It of course, strips out ‘Events” in the dashboard as well, which isn’t what I want, but can live with…
Seems like I’m very close?
Any guidance would be greatly appreciated.
Many thanks,
Denise
___________________________
function tribe_custom_theme_text ( $translation, $text, $domain ) {
$custom_text = array(
‘Events’ => ”,
);
if( (strpos($domain, ‘tribe-‘) === 0 || strpos($domain, ‘the-events-‘) === 0 || strpos($domain, ‘event-‘) === 0) && array_key_exists($translation, $custom_text) ) {
$translation = $custom_text[$translation];
}
return $translation;
}
add_filter(‘gettext’, ‘tribe_custom_theme_text’, 20, 3);
-
This topic was modified 9 years, 2 months ago by
dmystudio.