Support

Home Forums Event Espresso Premium EE4 Events Calendar – Specify date to start display

EE4 Events Calendar – Specify date to start display

Posted: June 16, 2014 at 5:36 pm


Robyn Alexander

June 16, 2014 at 5:36 pm

Am setting up a series of events for 10/1-10/6 that will begin accepting registrations in July. How can I set the Calendar to automatically display starting on the next event date? It currently starts in June, which forces the user to scroll forward to October – which is amateur.


Dean

June 17, 2014 at 12:46 am

Hi,

This is not currently possible without editing a core file. I will add a request for a filter hook to be added in future updates, so the options can be modified via a function.

If you still want to modify it, in /wp-content/plugins/ee4-events-calendar/EE_Calendar.php, at line 516 (approx) just above where it says

wp_localize_script( 'espresso_calendar', 'eeCAL', $ee_calendar_js_options );

add the following

$ee_calendar_js_options['month'] = '9';

This will set the month to October (Jan = 0, Feb = 1, etc.)

The support post ‘EE4 Events Calendar – Specify date to start display’ 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