Support

Home Forums Event Espresso Premium EE4.6.16: Remove link from Venue Name

EE4.6.16: Remove link from Venue Name

Posted: March 19, 2015 at 6:06 pm


ibergelson

March 19, 2015 at 6:06 pm

I want to deactivate the link to a venue details page from my Event detail page. i.e. Just under “Event Location” I see: “Venue: Name of venue”(I’m not seeing this html,it’s just for this example). I want to see: “Venue: Name of venue” (with no link). Is it possible to turn this off? Looks like it’s built into this: <?php espresso_venue_name(); ?>


Dean

March 20, 2015 at 4:07 am

Hi,

Add this function to a site specific plugin (https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/):

    function espresso_venue_name( $VNU_ID = 0, $link_to = 'details', $echo = TRUE ) {
        $link_to = '';
        EE_Registry::instance()->load_helper( 'Venue_View' );
        if($echo){
            echo EEH_Venue_View::venue_name( $link_to, $VNU_ID );
            return '';
        }
        return EEH_Venue_View::venue_name( $link_to, $VNU_ID );
    }


ibergelson

March 20, 2015 at 12:21 pm

wow! that works. loving the customizing options for this plugin and the support has been really great. thanks!

The support post ‘EE4.6.16: Remove link from Venue Name’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso