Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Hide certain time slots from day view in Calendar | Event Espresso - Staging Server

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

Viewing 2 reply threads


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

  • Support Staff

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

                                        /**
                                         * Agenda Options
                                         * http://arshaw.com/fullcalendar/docs/agenda/
                                         * Note: These ptions that apply to the agendaWeek and agendaDay views, and have beft out intentionally.
                                         * Please refer to the URL above to add.manage your agenda views.
                                         **/
 
                                        /**
                                         * Text/Time Customization Settings
                                         * http://arshaw.com/fullcalendar/docs/text/
                                         **/
 
                                        //Determines the time-text that will be displayed on each event.
                                        timeFormat:{ //Settings: http://arshaw.com/fullcalendar/docs/text/timeFormat/
                                                // for agendaWeek and agendaDay
                                                agenda: 'h:mm{ - h:mm}', // 5:00 - 6:30
 
 

                                                // for all other views
                                                '': ''// 7p

                                        },
										
										minTime: '10:00am',
										maxTime: '6:00pm',
 
                                        //Changes the colors of the events as seen here:
                                        //http://code.google.com/p/fullcalendar/issues/detail?id=6&can=1&q=css&colspec=ID%20Type%20Status%20Milestone%20Summary%20Stars
                                        eventRender: function( event, element) {

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.

Viewing 2 reply threads

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 - Staging Server