Support

Home Forums Event Espresso Premium Clickable Links on Events Table

Clickable Links on Events Table

Posted: January 8, 2018 at 6:56 pm

Viewing 1 reply thread


kdaily

January 8, 2018 at 6:56 pm

Is there a way to make the event name a link to the event itself and the venue name a link to the venue page?


Tony

  • Support Staff

January 9, 2018 at 5:03 am

Hi there,

Yes, you’ll need to edit the template used by the event table and place the edited version in your themes root directory (preferably using a child theme).

The defautl template is in /eea-events-table-view-template/templates/

It’s the espresso-events-table-template.template.php file.

Place a copy of that file with the same filename in your theme and edit that version.

Around line 113 you’ll find:

<td class="event_title event-<?php echo $post->ID; ?>"><?php echo $post->post_title; ?></td>

Change that to

<td class="event_title event-<?php echo $post->ID; ?>"><?php echo '<a href="'.$registration_url.'">' . $post->post_title.'</a>'; ?></td>

Then for the venue on line 115 change:

espresso_venue_name( NULL, FALSE );

to this:

espresso_venue_name( NULL );

You’ll then have links to both the event and venue.

Viewing 1 reply thread

The support post ‘Clickable Links on Events Table’ 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