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

    (@room34)

    There is not, but you could hide Saturday and Sunday using CSS.

    This should do the trick:

    .ics-calendar-month-grid tr > *[data-dow='0'], .ics-calendar-month-grid tr > *[data-dow='6'] { display: none; }

    Thread Starter Craig

    (@spedadvocate)

    It appears I need to also add:

    .ics-calendar-month-grid tr > *[data-dow='7'] { display: none; }

    and then it works. Does that seem right to you?

    Plugin Author room34

    (@room34)

    Ah… yes, if you have Week starts on set to Monday (which is the WordPress default, but I always change it to Sunday), then I do think that value for Sunday is 7 and not 0.

    Thread Starter Craig

    (@spedadvocate)

    Actually, I need all three statements for it to work.

    Plugin Author room34

    (@room34)

    Interesting! I’m going to have to look into why that is. But at any rate, you should be fine to use all 3. Sunday is the only day that potentially has two values (0 and 7), depending on the start date of the week. (I think… now I’m second-guessing myself.)

    Thread Starter Craig

    (@spedadvocate)

    Test it with this month. Keep an eye on the last row, right hand columns …

    Plugin Author room34

    (@room34)

    Ah-ha, got it! It looks like the current month’s days are “correctly” using 0 as the value for Sunday, but my extra cells to fill in the grid past the end of the current month are counting up to 7.

    This should be easy to fix. I’ll have that in the next update. But you should just go ahead and continue checking for 0, 6 and 7 in your CSS. It won’t hurt to have the 7 in there.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘M-F only’ is closed to new replies.