Support

Home Forums Event Espresso Premium Link Event Titles Event Table Add On

Link Event Titles Event Table Add On

Posted: March 18, 2019 at 4:54 pm

Viewing 2 reply threads


afermtools

March 18, 2019 at 4:54 pm

We are using EE4 and utilizing the Table Template Addon. I’m trying to figure out how to link the event titles. Currently they are text and the only link is the learn more link in the far right column.

Is there a filter or something I can use to accomplish this?

TIA


Tony

  • Support Staff

March 19, 2019 at 10:31 am

Hi there,

There’s no filter for it, but you can load your own custom version of the template and add a link to that.

To do that you’ll need a child theme (if you’re not using one already), there’s details on how to create one here:

https://developer.wordpress.org/themes/advanced-topics/child-themes/

Once you have a child theme, copy the template from the EE4 table view template:

/eea-events-table-view-template/templates/espresso-events-table-template.template.php

Is the default template.

Place a copy of that file in your child themes root directory.

In that location, edit the file and on line 113 you’ll have this:

<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; ?>">
	<a class="ee-event-title" href="<?php echo $registration_url; ?>">
  		<?php echo $post->post_title; ?>
  	</a>
</td>

That will change the Event title to a link that goes to the same location as the current register link.


afermtools

March 19, 2019 at 12:56 pm

Thanks Tony. Very helpful.

Viewing 2 reply threads

The support post ‘Link Event Titles Event Table Add On’ 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