• Resolved damianba

    (@damianba)


    Hello, is it possible to hide hours without any events assigned to it – I’m talking about agenda view (week view).
    Or at least make some offset of night hours – to hide 0:00 to 8:00, which are non used at all by us

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author moiseh

    (@moiseh)

    Hello,
    Sorry, apparently the FullCalendar library don’t have this configuration to hide slots based on empty events.

    Thread Starter damianba

    (@damianba)

    Yes, i’ve managed to hide early and late hours by min and max value according to documentation

    @damianba how did you solve this? Can you show me?

    Thread Starter damianba

    (@damianba)

    Hello @fredrikrubneblk – sure!
    Locate var options = { In your wbclite.js file. This is an array with options which are passed into “fullcalendar” library widget.
    After { you can add min and max value like: minTime: '10:00:00', maxTime: '22:00:00',

    Let me know if you succeed

    @damianba It worked GREATE!!!

    THANKS!

    Plugin Author moiseh

    (@moiseh)

    Hello guys, if it helps in something, in recent updates i’ve added the possibility to pass FullCalendar variables using WordPress hooks (from PHP).

    For example adding the following code in your child-theme functions.php file will produce the same results as posted above:

    add_filter('wbc_fullcalendar_options', function($options){
    	$options['minTime'] = '10:00:00';
    	$options['maxTime'] = '22:00:00';
    	return $options;
    });

    This may be better because the changes will not be lost when updating the plugin in future ??

    Thread Starter damianba

    (@damianba)

    Thanks, that’s awesome project!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Week view (agenda) – HIDE empty hours’ is closed to new replies.