- edited description
Hook to set the hours to display in the Calendar view
Issue #416
resolved
On week, day, and staff Calendar view (in backend), there are always all 24 hours visible. For someone that only works from 08:00 to 16:00 it would be more clear to only have those hours visible.
Since I'm guessing it's too complicated to this automatic, would it be possible to add a filter for it?
I tried with CSS but I can't do it.
Requested here: https://bookingwp.com/forums/topic/modify-admin-calendar-views/
Comments (2)
-
reporter -
- changed status to resolved
I see your point, but that isn't possible since appointment position is calclated based on 24h map.
Alternative is to auto-scroll to 8am as it is done for current hour for current day. Adapting and adding this this JS to WP admin should be simple:
// ------------------------------------- // Scroll to clicked hours label // ------------------------------------- $('.hours label').click(function(){ var e = $(this); $('html, body').animate({ scrollTop: e.position().top }, 300); });
- Log in to comment