Support

Home Forums Event Espresso Premium Show Extract of Event in My Bookings

Show Extract of Event in My Bookings

Posted: April 2, 2018 at 11:56 am


ardiaful

April 2, 2018 at 11:56 am

In my bookings a full description of the events is provided when user clicks on the wheel icon. I want to change that to instead show only the extract of the event.


Tony

  • Support Staff

April 3, 2018 at 4:31 am

Hi there,

To do that you’ll need to copy the original template used by the ESPRESSO_MY_EVENTS shortcode into your themes root directory (preferably a child theme) and change some of the code used.

\eea-user-intergration\templates\content-espresso_my_events-event_section.template.php

On line 53 you’ll have something like this:

echo apply_filters('the_content', $event->description());

Change that to:

echo apply_filters('the_excerpt', $event->short_description());

EE will load the custom version of the template in place of the default and the above change uses the events short description rather than full content.


ardiaful

April 9, 2018 at 6:47 am

Yes, this now works as I wished. Thank you!

The support post ‘Show Extract of Event in My Bookings’ 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