Hide Weekend Days from Month View

Home Forums Calendar Products Events Calendar PRO Hide Weekend Days from Month View

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #941580
    Lars
    Participant

    Hi,

    How do we hide “Weekend Days” (Saturday, Sunday) from Month View?

    #941592
    DAVE
    Participant

    We would also like this feature also.

    Without modifying the core, is there a solution to this?

    Thanks.

    #941625
    Brian
    Member

    Hello,

    Thanks for using our plugins.

    Unfortunately, we do not have a feature to hide weekends in the Month view.

    However, I came up with this css to do it:

    https://gist.github.com/jesseeproductions/0b7be26ae186a39f0abd

    Let me know if that works for you.

    Thanks

    #941640
    DAVE
    Participant

    Hi,

    That almost works, though Friday is display as one whole column. Is the last-child not doing that?

    Thanks.

    #941644
    DAVE
    Participant

    How does this example work for you?

    /* Hide Weekends the Events Calendar Monday First Day of Week */
    .tribe-events-calendar th#tribe-events-sunday,
    .tribe-events-calendar th#tribe-events-saturday,
    .tribe-events-calendar .vcalendar tr td:first-child,
    .tribe-events-calendar .vcalendar tr td:last-child {
    	display: none;
    }
     
     
    /* Hide Weekends the Events Calendar Monday First Day of Week */
    .tribe-events-calendar th#tribe-events-sunday,
    .tribe-events-calendar th#tribe-events-saturday,
    .tribe-events-calendar .vcalendar tr td:nth-child(6),
    .xxDISABLEDxxtribe-events-calendar .vcalendar tr td:last-child {
    	display: none;
    }
    #941734
    Lars
    Participant

    Hi

    Changing this line:
    .tribe-events-calendar .vcalendar tr td:nth-child(6),

    to:
    .tribe-events-calendar .vcalendar tr td:nth-child(7),

    seems to make Friday display as suppsosed and hide Saturday and Sunday.

    #941891
    DAVE
    Participant

    That does it!

    Thanks.

    #941950
    Brian
    Member

    Thanks Lars for the other coding. Glad it is working for both.

    I am going to close this ticket, but if you need anything else related to this topic or another please post a new topic on the forum and we can help you out.

    Thanks

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Hide Weekend Days from Month View’ is closed to new replies.