Hide Weekends from Any View (Day/Week/Month)

Looking to customize our schedule for work. We are not open on weekends and would like to have Saturday/Sunday hidden from any view.

Any help? Also, where do I make these changes exactly? I tried making changes in Editor but apparently did that wrong since is caused a fatal error and deactivated.

Any/all help is much appreciated! :smiley:


This is probably what you’re looking for --> docs.dhtmlx.com/scheduler/custom_scales.html


that’s right, you need to use the ignore_{viewName} method.

Where am I putting this code? Forgive me for being a little n00b at this. I am fairly good at understanding coding and whatnot, but for some reason this escapes me.


you just need to define this method before “scheduler.init()” function.

[code]function init() {
scheduler.config.xml_date="%Y-%m-%d %H:%i";

scheduler.ignore_week = function(date){…

scheduler.init('scheduler_here',new Date(),"week");

Please feel free to contact us!

Am I placing this code into here? Editing event-calendar-scheduler/scheduler.php (active)

When I copy and paste the code you have above, it deactivates due to error.

Thank in advance!

How do you initialize the scheduler on your page ?

I am using WordPress so I guess it initializes automatically? Forgive me for being a little in the dark on this one.

In plugin’s folder there is a scheduler_include.html file. You can place any extra javascript code in this file ( be sure to wrap it in a script tag )