If you are using the Tribe Events Calendar plugin, you may have noticed that the title of the page in the calendar view is “Calendar”. Unfortunately, this title is not editable from the admin side, so I had to find a solution to edit it.

I finally found the tribe_get_events_title hook which lets me edit it. Here is what I did to fit the needs of my customer :

function bweb_change_events_title( $title ){
	if( is_tax() ){
		return $title;
	} else {
		return __( 'All events', 'texdomain' );
	}
}
add_filter( 'tribe_get_events_title', 'bweb_change_events_title' );

Note : I did finally not use this plugin for my project because I discovered that it is not fully translatable, and so, not compatible with multilingual plugins like the powerful Polylang.

 

 

Post written byBrice CAPOBIANCO

WordPress addict and self-taught. I love to learn and to create, then to share…
Founder of bweb.
Share this post

Your email address will not be published. Required fields are marked *

Show 3 comments

3 comments