Support

Home Forums Event Espresso Premium Calendar Table Add-On – Hiding event description

Calendar Table Add-On – Hiding event description

Posted: February 17, 2014 at 1:51 pm


d37toastmasters

February 17, 2014 at 1:51 pm

Is there a way to hide the event description when using Calendar Table Add-On? I’m filtering different types of events on various pages and have no need to display the full event description under each event. I reviewed the short codes and did not find one to hide the event description. Here is an example of page using the calendar Table Add-On: http://d37toastmasters.org/

Thank you,

Jake


Lorenzo Orlando Caum

  • Support Staff

February 17, 2014 at 2:55 pm

Hello again Jake,

Unfortunately, the event description can’t easily be hidden with CSS. It uses the td-event-info class. Here is a screenshot so you can see it:

http://cl.ly/image/1v0I0r250a3v

The problem is that the class has additional information within it such as the title and when the event takes place, etc. If you try to hide that element, then you would end up with something like this:

http://cl.ly/image/2Z1W1w1O3H0a


Lorenzo


d37toastmasters

February 18, 2014 at 3:19 am

Lorenzo,

That is disappointing.

Thank you for your help.

Jake


Tony

  • Support Staff

February 18, 2014 at 7:00 am

Hi Jake,

As you’ve already modified the template, I’m guessing you wont mind modifying it a little more? If so you can remove the event description from the template completely rather easily. You can either delete the code, or comment it out, I would comment it out:

espresso-template-calendar-table/index.php Line 137

<?php echo espresso_format_content(array_shift(explode('<!--more-->', $event->event_desc))); //Includes <p> tags ?></td>

Change that to

<?php // echo espresso_format_content(array_shift(explode('<!--more-->', $event->event_desc))); //Includes <p> tags ?></td>

Only problem is this is all or nothing, it removes the description from the Calendar table template. (If that is a problem)

Hope that helps.


d37toastmasters

February 18, 2014 at 6:51 pm

Hi Tony,

I can’t tell a difference between the current and new code snippet you gave me. Maybe I’m missing something.

Thank you,

Jake

The support post ‘Calendar Table Add-On – Hiding event description’ 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