change default date range view on first load
-
Not a question, but a solution I wanted to share.
I wanted my calendar to show a different date range on first loading other than today’s date (I wanted my calendar to show 1st Jan 2014 when first viewed)
editwp-content/plugins/wp-fullcalendar/wp-fullcalendar.php
find
function calendar( $args = array() ){
changeself::$args['month'] = (!empty($args['month'])) ? $args['month']-1:date('m', current_time('timestamp'))-1; self::$args['year'] = (!empty($args['year'])) ? $args['year']:date('Y', current_time('timestamp'));
to
self::$args['month'] = (!empty($args['month'])) ? $args['month']-1:'12'; self::$args['year'] = (!empty($args['year'])) ? $args['year']:'2013';
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘change default date range view on first load’ is closed to new replies.