Support

Home Forums Event Espresso Premium Adding an excerpt hides every other field in the event overview page

Adding an excerpt hides every other field in the event overview page

Posted: October 11, 2016 at 4:18 am


MundoDigitalis

October 11, 2016 at 4:18 am

I use the [ESSPRESO_EVENTS] shortcode in my footer (for the upcomming events). The teaser is a bit too long here. So I decided to write excerpts for the events. I’ve now noticed that adding an excerpt will remove other functionilties in the /events page.

Screenshot: http://i.imgur.com/14Ds2VB.png
The first post has no excerpt.
Second event has both an excerpt and the normal text. It is missing everything but the excerpt (button, dates, iCal, etc)

I use Avada theme.


MundoDigitalis

October 11, 2016 at 4:23 am

Update: this does not occur when I use the [ESPRESSO_EVENTS] shortcode, so I can currently use this as a workaround


Josh

  • Support Staff

October 11, 2016 at 9:52 am

Hi there,

There’s an interesting little feature in the Avada theme that does this. What you can do is copy the Avada theme’s archive.php template into a child theme, then make an edit to it.

In Avada’s archive.php template, around line 177 (your version may have this on a different line) you’ll find this code:

if($data['content_length'] == 'Excerpt') {

You replace the above with this:

if($data['content_length'] == 'Excerpt' && 'espresso_events' != get_post_type()) {

The above change will disable Avada’s “strip the content if there’s an excerpt” feature for Event Espresso event lists.

The support post ‘Adding an excerpt hides every other field in the event overview 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