Support

Home Forums Event Espresso Premium Hide certain time slots from day view in Calendar

Hide certain time slots from day view in Calendar

Posted: July 17, 2013 at 5:10 am


Aaron Davies

July 17, 2013 at 5:10 am

Hi there,

I just want to hide the time slots from 12AM – 8AM and from 6PM – 12AM in the day view of the calendar as they don’t have any events.

How can I achieve this as I tried using CSS but the content of the calendar is having same class for all the time slots.

Take a look here: http://www.rcmconference.org.uk/day-2/

Let me know how to achieve this.

Ready to mod the plugin file if needed.

Cheers


Dean

July 17, 2013 at 5:29 am

Hi,

Yes this is possible but it involves an edit to a core file which we don’t recommend.

If you wish to do this, edit the espresso-calendar.php file in the calendar add on plugin folder.

Around line 546 you will see the following:

https://gist.github.com/lorenzocaum/5a9a56f831aa443b3cd7f8793eb2c938

The important thing here is the addition of

minTime: '10:00am',
maxTime: '6:00pm',

which sets the start and end time so the above will show the calendar starting at ten am and ending at 5pm (the last time should be an hour ahead of where you want it to end).


Aaron Davies

July 17, 2013 at 10:12 am

Thanks Dean. 🙂

That sorted it out.

The support post ‘Hide certain time slots from day view in Calendar’ 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