Support

Home Forums Events Calendar Add-on Is there a way to hide time on some events but not others?

Is there a way to hide time on some events but not others?

Posted: February 3, 2015 at 1:25 pm

Viewing 2 reply threads


Kevin Brennan

February 3, 2015 at 1:25 pm

WP: 4.1
EE: 4.4.5.p
EE-Calendar: 3.2.1
New Install

I’m working with a group that uses the calendar to show actual events, but also things like deadlines that don’t have a start/end time (for example, “application due”)

While running through the support forums I found a way to turn them totally off on this page: https://eventespresso.com/topic/all-day-event-remove-start-or-end-times/
and at the end, it’s mentioned:

“If you need to make the dates display for some events let us know and we can show you how to add a “Show dates” option in the editor that can be toggled on and off.”

That sounds exactly what I’m looking for. Will that work for EE4, and if so, can you please share?

Thanks


Lorenzo Orlando Caum

  • Support Staff

February 4, 2015 at 12:17 pm

Hi Kevin,

Two ideas come to mind on how to handle this:

1) Add all other events to a new category. Then use the calendar parameter for the events category to show that category:

[ESPRESSO_CALENDAR event_category_id=”your_category_identifier”]

or

2) Add the application events to a new category.

Then use CSS to hide the time:

.eventcategoryname span.time-display-block {display: none !important;}

If the event category was called applications, then this would be the CSS:

.applications span.time-display-block {display: none !important;}

Note: this will only hide the time that is shown on the initial view of the calendar. It will not hide the time when you hover over the event.


Lorenzo


Kevin Brennan

February 5, 2015 at 9:23 am

Thanks Lorenzo. That doesn’t do exactly what I’m looking for, but I think it’s a very reasonable solution.

Viewing 2 reply threads

The support post ‘Is there a way to hide time on some events but not others?’ 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