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


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

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

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 });

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