Support

Home Forums Events Calendar Add-on Calendar widget start month

Calendar widget start month

Posted: February 20, 2013 at 6:50 pm

Viewing 4 reply threads


cerulean

February 20, 2013 at 6:50 pm

I recently got assistance adjusting code to set a start month for the calendar, but need to do the same thing with the widget. Is there a way? Thanks


Dean

February 21, 2013 at 1:04 am

Hi,

I have been looking into this this morning and though it uses the same core system, the widget is set up differently. As such im struggling to get it to play nicely. I will ask one of the other support staff to have a look at it as well.


cerulean

February 21, 2013 at 7:19 am

Thanks for looking into it. I appreciate any advice : )


Josh

  • Support Staff

February 21, 2013 at 9:29 am

Hi there,

In espresso-calendar/espresso-calendar-widget.php, you can add this line just before the last closing brackets that are before the closing script tag (should be line 166):

$espresso_calendar_widget .= '$jaer("#espresso_calendar").fullCalendar("gotoDate", 2013, 2);';

This is the modification in context:

$espresso_calendar_widget .= '});';
$espresso_calendar_widget .= '$jaer("#espresso_calendar").fullCalendar("gotoDate", 2013, 2);';
$espresso_calendar_widget .= '});';

$espresso_calendar_widget .= '</script>';
$espresso_calendar_widget .= '<div id="espresso_calendar"></div>';
$espresso_calendar_debug_msg = '<p>this is espresso_hook_action_calendar_widget</p>';


cerulean

February 21, 2013 at 9:58 am

Fantastic. That worked! Thanks for the great support : )

Viewing 4 reply threads

The support post ‘Calendar widget start 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