Support

Home Forums Event Espresso Premium [ESPRESSO_CALENDAR] show EXCERPT instead of image

[ESPRESSO_CALENDAR] show EXCERPT instead of image

Posted: July 7, 2015 at 12:56 am

Viewing 8 reply threads


Su Yuen Chin

July 7, 2015 at 12:56 am

Hi Team,

We use Excerpt field to add some description to meta tag. Event calendar shows that information on hover event. That shows the image when there is no content in Excerpt field.
http://linode.mokomomo.com/fidgets/news-events/

How do we show the image without displaying Excerpt content?


Lorenzo Orlando Caum

  • Support Staff

July 7, 2015 at 9:34 am

Hi, with the events calendar, by default the event excerpt is used and if that isn’t available then the event description is used. This is similar to the event listings page.

The image that appears on one of the events looks like it was uploaded into event description area directly as it activates a lightbox when clicked. The featured image is usually uploaded via the featured image option in the event editor.


Lorenzo


Su Yuen Chin

July 7, 2015 at 9:45 pm

Thanks Lorenzo.

We are using excerpt as you instructed us in this topic. https://eventespresso.com/topic/get-event-date-and-time/
We do not want to display excerpt but we want to display the content. Can you help us?


Lorenzo Orlando Caum

  • Support Staff

July 8, 2015 at 8:59 am

Hi, that change won’t be possible since the calendar looks for an excerpt first and then if that is not available, then it uses the event description.


Lorenzo


Su Yuen Chin

July 8, 2015 at 8:16 pm

Ok. I am looking for the code to edit and skip excerpt part. Can you find where the code is for me?


Lorenzo Orlando Caum

  • Support Staff

July 9, 2015 at 9:59 am

Hi, this requires an edit to the core calendar plugin and is therefore unsupported.

/wp-content/plugins/ee4-events-calendar/EED_Espresso_Calendar.module.php

At about line 526 you’ll see this:

$description = $event->short_description( 55, NULL, TRUE );

Adjust it to this:

$description = $event->description( 55, NULL, TRUE );

This will also be lost on a software update.


Lorenzo


Su Yuen Chin

July 9, 2015 at 11:59 pm

That completly removed the section 🙁


Su Yuen Chin

July 10, 2015 at 12:50 am

$this->get( ‘EVT_desc’ ); sends the content without the img tag. May be it is removing all HTML tags. Problem not solved yet.


Su Yuen Chin

July 10, 2015 at 2:43 am

$event->description_filtered(); did the job. This is resolved.

Viewing 8 reply threads

The support post ‘[ESPRESSO_CALENDAR] show EXCERPT instead of image’ 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