Support

Home Forums Events Calendar Add-on Display next month's calendar

Display next month's calendar

Posted: February 18, 2013 at 11:46 pm

Viewing 5 reply threads


cerulean

February 18, 2013 at 11:46 pm

I need to display the March calendar by default, when a series of events are occurring. I’ve found some suggestions for how to edit espresso-calendar.php to accomplish this but they seem to be outdated. Thanks for any suggestions.


Dean

February 19, 2013 at 8:47 am

Hi,

In the espresso-calendar.php go to line 850 (approx)

You should see

            });

</script>
<div id='espresso_calendar'></div>
<?php
        $buffer = ob_get_contents();
        ob_end_clean();
        return $buffer;
        //End calendar output
    }

}
add_shortcode('ESPRESSO_CALENDAR', 'espresso_calendar');

above this add

$('#espresso_calendar').fullCalendar('gotoDate', 2013, 2);

where 2013 = year and 2 = March (its based on binary so January is 0, February 1, etc)

That will send the calendar directly to March.


cerulean

February 19, 2013 at 9:24 am

That worked beautifully. Thanks so much.


Dean

February 19, 2013 at 10:01 am

No problem!


cerulean

February 20, 2013 at 10:44 am

Following up on this, I also need to make the calendar widget display the month where the events occur. How is this possible? Thanks


Dean

February 21, 2013 at 1:03 am

closed this thread as new thread started here https://eventespresso.com/topic/calendar-widget-start-month/

Viewing 5 reply threads

The support post ‘Display next month's calendar’ 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