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
Calendar widget start month | Event Espresso - Staging Server

Support

Home Forums Calendar 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

  • Support Staff

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

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 - Staging Server