Home › Forums › Calendar Products › Events Calendar PRO › Week View, event not carry over to next day if ends late
- This topic has 3 replies, 2 voices, and was last updated 10 years, 11 months ago by
Brian.
-
AuthorPosts
-
June 2, 2015 at 7:09 pm #966799
Chris
ParticipantUsing the weekview, some events start at 6PM and lets say end at 2AM, technically the following day. I would like to make it so that either A) it doesn’t spill over to the next day visually and just cuts off at 12 (not ideal), or if the weekview would go down to 3am, then start at the top at 4am.
Also, on the weekview template, how can I call the event start date/time and event end date/time to display them?
June 3, 2015 at 7:51 am #966919Brian
MemberHi,
Thanks for using our plugins. I can try to help out here.
Using the weekview, some events start at 6PM and lets say end at 2AM, technically the following day. I would like to make it so that either A) it doesn’t spill over to the next day visually and just cuts off at 12 (not ideal), or if the weekview would go down to 3am, then start at the top at 4am.
There is a way to change this by changing the End of day cutoff setting.
That setting is located here:
Events > Settings > General Tab > “End of day cutoff”
If you set that setting to 2am the week view will start at 2am and the event that goes from 6pm to 2am the next day will be all in the same column.
So if you set that to 4am as you mention that should start the week view at 4am. Let me know if that does not.
Also, on the weekview template, how can I call the event start date/time and event end date/time to display them?
To modify any of our templates we have the themer’s guide:
https://theeventscalendar.com/knowledgebase/themers-guide/
Use that to move and edit this file in your theme:
events-calendar-pro\views\pro\week\single-event-hourly.php
Then you can add a function like this to display event times:
<?php echo tribe_events_event_schedule_details( $event_id, '<h3>', '</h3>' ); ?>Let me know if you have any follow up questions.
Thanks
June 5, 2015 at 4:17 pm #967586Chris
ParticipantWorked great, thanks!
June 7, 2015 at 11:08 am #967673Brian
MemberGreat Glad it helps.
Also when we release 3.10 soon we refactored the week view and have a new filter to specify what times to show in week view. So if you only want to show events from 8am to 8pm or any other time, you are able to do that.
Please read up on that here:
https://theeventscalendar.com/week-view-refactor/
Since this is marked resolved I am going to close this ticket, but if you need anything else related to this topic or another please post a new topic on the forum and we can help you out.
Thanks
-
AuthorPosts
- The topic ‘Week View, event not carry over to next day if ends late’ is closed to new replies.
