Home › Forums › Calendar Products › Community Events › Show only weekdays in calendar
- This topic has 8 replies, 3 voices, and was last updated 7 years, 10 months ago by Thomas Graunke.
-
AuthorPosts
-
June 29, 2016 at 1:17 pm #1133696Thomas GraunkeParticipant
Is this possible without too much hacking? Would love to only show weekdays as we never have weekends.
June 30, 2016 at 12:05 am #1133832Geoff B.MemberGood evening Thomas and welcome back!
Thank you for reaching out to us.
I would love to help you with this topic.
Is this possible without too much hacking? Would love to only show weekdays as we never have weekends.
The short answer is yes. But it depends on what view you are interested in. Could you expand on that ?
The easiest view to accomplish this in is the week view. Via Events -> Settings -> Display (Hide weekends on Week View).
Best regards,
Geoff B.
July 1, 2016 at 9:11 am #1134485Thomas GraunkeParticipantIs it this easy to do in Month view? I’d like month view to only show weekdays.
July 4, 2016 at 11:04 pm #1135330Geoff B.MemberGood evening Thomas,
Thank you for writing back.
Is it this easy to do in Month view? I’d like month view to only show weekdays.
I guess some simple CSS should cut it. Try the following:
.tribe-events-month #tribe-events-saturday, .tribe-events-month #tribe-events-sunday {display:none;}.tribe-events-month .tribe-events-calendar tbody tr td+td+td+td+td+td {display:none;}
Let me know if that helps.
Have a great day!
Geoff B.
July 7, 2016 at 9:10 am #1136525Thomas GraunkeParticipantHey there, this code snippet didn’t work, even tried to add !important. You can see the calendar
at tomisalwaysright.com/calendar. Please advise.July 7, 2016 at 3:15 pm #1136972Geoff B.MemberDear Thomas,
I am sorry this did not work for you.
I just retested those rules and it should work properly.
With that in mind, I went on your site and looked at the CSS.
I believe that something went wrong in the copy paste of those 2 rules:
- .tribe-events-month #tribe-events-saturday was missing a space and shows as .tribe-events-month#tribe-events-saturday in your CSS rules
- I cannot find the
.tribe-events-month .tribe-events-calendar tbody tr td+td+td+td+td+td rule on your site. There might be a chance that is also due to copy-paste
Would you mind double-checking your CSS file to make sure it is exactly as in the snippets above ?
Best regards,
Geoff B.
July 7, 2016 at 3:27 pm #1136976Thomas GraunkeParticipantUser error on my part. It works now! Thank you so much.
July 8, 2016 at 7:25 am #1137208Geoff B.MemberGood morning Thomas,
I’m super stoked this worked for you.
You are welcome back on our support forums any time 🙂
For now, I am going to close this thread.
Have a great weekend!
Geoff B.
-
AuthorPosts
- The topic ‘Show only weekdays in calendar’ is closed to new replies.