Support

Home Forums Event Espresso Premium Making Event Titles Clickable in EE4 Events Table View Template

Making Event Titles Clickable in EE4 Events Table View Template

Posted: September 14, 2015 at 2:52 pm


dlamunyon

September 14, 2015 at 2:52 pm

Hi,
My client has requested that the Event Titles also be clickable (linking to the single event) in the Events Table. Can you suggest a php customization that I might try? It seems simple enough, but I’m struggling with the solution.

Site in question is: https://sunflowertheatre.org

Using Event Espresso EE4 v. 4.8.9 and
Events Table View Template v. EE 4.4.9

Thank you.


Tony

  • Support Staff

September 15, 2015 at 12:57 am

Hi,

Within the template file, line 105 should be this:

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

Swap that out for something like this:

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

Are you loading the template from /wp-content/uploads/espresso/templates/?

If not I would recommend copying the template there and making modifications to the file there, it will override the default template and is safe from updates.


dlamunyon

September 15, 2015 at 2:23 pm

Worked like a charm. Thanks so much.

We have copied the template file into a child theme, and are making the customizations there, but that’s good to know. I’ll keep that in mind for future modifications.

Thank you.


Tony

  • Support Staff

September 16, 2015 at 1:55 am

You’re most welcome 🙂

Using your child theme is just as good, if not better than /wp-content/uploads/espresso/templates/

We check for templates within custom locations to allow you to alter those templates within modifying the core plugin and to keep them safe when the plugin updates. As long as you control the updates for the theme (with a child theme you obviously do) then the template is safe and it will work fine.

The support post ‘Making Event Titles Clickable in EE4 Events Table View Template’ 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