Since I upgraded to the Pro version, venues are now hyperlinked in both list and event detail view. I have been trying the following code in my functions.php file, but it completely removes the venue name. Can you give me some direction as to how to get the names to appear without the venue hyperlinks?
add_filter('tribe_get_venue_link', 'tribe_remove_venue_link_list_view', 10, 4);
function tribe_remove_venue_link_list_view($link, $venue_id, $full_link, $url) {
// if we are not in list view return the link
// to remove venue links everywhere comment the line below
if (!tribe_is_list_view()) {return $link;
}
// if we are in list view just return the name
return tribe_get_venue($venue_id);
}
I have also tried this, but with no effect at all.
function tribe_remove_venue_link() {
remove_filter('tribe_get_venue', array(Tribe__Events__Pro__Main::instance()->single_event_meta, 'link_venue'));
}
add_action('tribe_events_single_meta_before', 'tribe_remove_venue_link', 100);
In both cases I have added these to the end of my active theme functions.php file.
Thank you,
Theron Feist