Need to remove hyperlinks from Venue Names Everywhere

Home Forums Calendar Products Events Calendar PRO Need to remove hyperlinks from Venue Names Everywhere

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1589106
    peabodyits
    Participant

    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

    #1591022

    Hi Theron,

    Thanks so much for reaching out!

    Another method would be to hide the hyperlink with some CSS.  You can see the CSS rules that you may want to hide in the following forum thread:

    https://theeventscalendar.com/support/forums/topic/disable-the-venue-and-organizer-links/

    Let me know if that helps!

     

    Thanks,

    Jaime

    #1607763
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Need to remove hyperlinks from Venue Names Everywhere’ is closed to new replies.