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
Setting the calendar start date; where to make the change? | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Setting the calendar start date; where to make the change?

Setting the calendar start date; where to make the change?

Posted: December 8, 2013 at 7:06 pm

Viewing 3 reply threads


Gerald Green

December 8, 2013 at 7:06 pm

I have purchased the dev version of Event Espresso, and using it for the first time on a demo website before we go live to ensure I understand how to set it up.

I’ve seen this topic (closed), where the resolution is to apply the following code snippet;

jQuery(‘#espresso_calendar’).fullCalendar( ‘gotoDate’, 2013, 9, 15);

Exactly where do I apply this code? Apologies for a dummies question…


Dean

  • Support Staff

December 9, 2013 at 3:54 am

Hi,

Unfortunately the code needs to go into one of the calendar files itself.

In the espresso-calendar.php file, look for the following

ee_imgTimeout
);

It should be around line 876.

After the ); on a new line add the code

$('#espresso_calendar').fullCalendar('gotoDate', 2013, 2, 21);

2 things to be aware of:

1) The months start at 0, so 2103, 0 is January and 2013, 9 is October.
2) Updates to the calendar will over write these changes.


Gerald Green

December 20, 2013 at 4:31 pm

Thanks for that – worked brilliantly and then I updated the theme. Appears the calendar php file has changed; can’t find the ee_imgTimeout value in the new version of the file.

Where do I insert that line of code now?


Dean

  • Support Staff

December 23, 2013 at 2:30 am

Hi,

It’s now in a separate file espresso-calendar/scripts/espresso_calendar.js. You can add it right at the bottom, just before the closing });

Viewing 3 reply threads

The support post ‘Setting the calendar start date; where to make the change?’ 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