Support

Home Forums Event Espresso Premium calendar display go to specifc month

calendar display go to specifc month

Posted: January 9, 2013 at 2:29 pm


wowsunpeaks

January 9, 2013 at 2:29 pm

Hi I have looked through old forum posts and tried this solution:

https://eventespresso.com/forums/2012/05/calendar-to-display-a-specific-date/

however it does not work for me.

I added the following code

// Change default calendar start date to september 13, 2013
$jaer(‘#espresso_calendar’).fullCalendar( ‘gotoDate’, 2013, 9, 13);

above:

        });

in espresso-calendar.php but it doesn’t change anything?

You can view my testsite here:

http://wowsunpeaks.com/testsite/?page_id=11


Josh

  • Support Staff

January 9, 2013 at 6:04 pm

Hi Cathy,

The calendar has gone through a few revisions since then, and it makes a difference where the code gets added. As an aside, the months start with 0, so september will be 8.

So the code will look like this:

jQuery('#espresso_calendar').fullCalendar( 'gotoDate', 2012, 7, 15);

and you’ll want to place it just before the line with the }); before the closing </script> tag in espresso-calendar.php. In the current version of the calendar (2.0.4), this is on line 827.


Josh

  • Support Staff

November 22, 2016 at 9:03 am

Update: The above code is obsolete. You can use this solution instead:

https://gist.github.com/joshfeck/18dc736a58c2f95ca1858293cfea7e6e

The support post ‘calendar display go to specifc month’ 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