Support

Home Forums Event Espresso Premium Remove links to Venue pages from Event page

Remove links to Venue pages from Event page

Posted: April 26, 2018 at 6:34 am

Viewing 3 reply threads


countyit

April 26, 2018 at 6:34 am

Is there a way that we can remove the links to the venue pages from the individual event pages? We won’t be using the Venue pages so we would like to remove them.

http://lww.4ed.mwp.accessdomain.com/events/a-taste-of-minden-site-72/

Thanks


Tony

  • Support Staff

April 26, 2018 at 6:51 am

Hi there,

Yes you can, you can copy the template file used to output those details into your theme and remove the link.

If you are not using a child theme it is recommended you create one when doing this:

https://www.smashingmagazine.com/2016/01/create-customize-wordpress-child-theme/

Then copy the template from EE:

\event-espresso-core-reg\public\Espresso_Arabica_2014\content-espresso_events-venues.php

Place that in your child themes root directory and edit that template there, line 17 has the event name, which links to the Venue page.


countyit

May 1, 2018 at 6:38 am

http://lww.4ed.mwp.accessdomain.com/events/every-trail-has-a-story-site-60/

We want to remove the Venue link from that area, on all pages. Looked at link 17 and don’t see reference to the link.

So it just says Location Frost Centre (with no link to the Frost Centre venue)


Tony

  • Support Staff

May 1, 2018 at 6:44 am

Line 17 should have this:

<h4><strong><?php _e( 'Venue:', 'event_espresso' ); ?></strong>&nbsp;&nbsp; <strong> <?php echo $venue_name; ?></strong></h4>

At that point $venue_name will contain a link to the venue using the event name.

If you don’t want it to be a link then on line 9 you’ll find this:

$venue_name = espresso_venue_name( 0, 'details', FALSE );

Change that to:

$venue_name = espresso_venue_name( 0, '', FALSE );

Viewing 3 reply threads

The support post ‘Remove links to Venue pages from Event page’ 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