Support

Home Forums Events Calendar Add-on Remove the "all-day" and turn time in 24h in Calendar (suite)

Remove the "all-day" and turn time in 24h in Calendar (suite)

Posted: June 17, 2014 at 5:32 pm

Viewing 4 reply threads


Aurelien Jondeau

June 17, 2014 at 5:32 pm

Hi,

Sorry for the delay in replying.

This is a reply to the following thread: https://eventespresso.com/topic/remove-the-all-day-and-turn-time-in-24h-in-calendar/

I’m using the calendar .po and .mo files to turn in into French.

How do I remove “all-day” and turn time in 24h?

Thank you,


Josh

  • Support Staff

June 18, 2014 at 10:27 am

Hi Aurelien,

You can remove the all-day slot by opening up espresso-calendar/espresso_calendar.js and adding this line just before line 28’s header: { definition:

allDaySlot: false,

You can change the Calendar’s time settings to use 24 hour time by selecting the bottom time format setting. Here’s a screenshot of where you change this on the setting’s page:

https://www.evernote.com/shard/s4/sh/4811683b-bd83-42f5-b8d9-7fd5884002fd/eac2ad5272a600d0c3c9080afa8a86b3


Aurelien Jondeau

June 20, 2014 at 11:27 am

Hi Josh,

Thank you for your reply.

I’ve tried inserting your code as per your suggestion but it broke my calendar and wouldn’t display it anymore. I’ve removed it.

Regarding the 24h time, I wasn’t talking about the time on an event but the vertical line of hours of the day on the left on the “week” and “day” views of the calendar.

I would actually prefer to know how to translate the “all-day” then these times instead of removing “all-day” altogether.

How do I do that?

Thank you,


Dean

June 23, 2014 at 12:10 am

Hi,

In the espresso-calendar/scripts/espresso_calendar.js file, edit it at line 25 just below

	$('#espresso_calendar').fullCalendar({

and add the following

		allDayText:"write something",
		axisFormat: 'H:mm',

Obviously change write something to the wording you prefer.

Please note that updates to the calendar will over write these changes.


Aurelien Jondeau

June 30, 2014 at 10:10 am

Hi Dean,

Thank you very much for your help, it works perfectly!

Thanks again.

Aurelien

Viewing 4 reply threads

The support post ‘Remove the "all-day" and turn time in 24h in Calendar (suite)’ 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