How To Change Venue Title Tag in Tribe Events Calendar

I really enjoy using The Events Calendar plugin by Tribe, but I do find their documentation to be lacking sometimes – especially since they upgraded to version 6. Search engines are still directing me to older documentation that does not exist anymore.

What I wanted to to do was to change the <title> tag of the Venue post type to whatever the name of the venue on that page is. What you need to do is to add this snippet to your theme’s functions.php file:

function filter_venue_title( $title ) {
if ( tribe_is_venue() ) {
		$title = tribe_get_venue();
	}
	return $title;
}
add_filter( 'tribe_events_title_tag', 'filter_venue_title' );

Hopefully that helps!

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Contact

3420 Pump Rd. #181
Henrico, VA 23233

+1 804 430 9444

Contact Us

Connect