Hide weekend days

Home Forums Calendar Products Events Calendar PRO Hide weekend days

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #110729
    Lars
    Participant

    Hi
    We are planning to buy and use the “Filter Bar” but as this display to the left of the calendar the calendar itself will be very narrow. We could bypass this by NOT showing the weekend days as we don’t need to. But how do we hide the “weekend days” ?

    “Event Espresso” has this on/off option.

    #110856
    Barry
    Member

    Great question!

    • We don’t have an option along those lines, but you could certainly implement this as a customization – removing the relevant columns via some template overrides (or merely by applying CSS classes that then let you hide them with a little Javascript)
    • If you think such an option would be useful please do post a feature request! We’re always looking out for great ideas for future releases
    • Do note that the filter bar has options to display in horizontal mode (typically above the calendar) in addition to vertical mode, so that might also provide a solution to the problem as your calendar won’t be nearly so cramped in that configuration

    Does that help?

    #110900
    Lars
    Participant

    This reply is private.

    #111495
    Lars
    Participant

    I need to be adviced on how to hide Weekend Days as these doesn’t have their own unique class. Where should this be added?

    #111774
    Barry
    Member

    So what you’d need to do – if you were hiding them via CSS is customize the relevant views and add those classes to the elements, then setup your own CSS rules to accommodate this.

    Our Themer’s Guide (link over on the right) is a great starting point for this kind of work 🙂

    #134148
    jan
    Participant

    I just bought this and am feeling buyer’s remorse. Tell me one business user who does want to show weekend days on their calendar. I can barely fit more than an event or two without things getting crammed and naturally want to eliminate the days we’ll never use. This great starting point, the themer’s guide, provides no specific help whatsoever. I assume month/loop-grid.php is what i should be modifying but i am not a PHP programmer. Can you be more specific? I and every other biz user would appreciate it.

    #134157
    Lars
    Participant

    @mostlyweb: I agree with you but unfortunately Modern Tribe hasn’t provided many settings for controlling their plugin for specific needs like: 5 days week (hide weekend days), timeframe, etc.

    This is the solution we found ourselves. Find this file:
    events-calendar-pro/lib/template-classes/week.php
    In line 26: “public static $week_length = 7;” change “7” to “5”.

    This will get you a 5 day week view but it will take a bit of CSS to correct the look of the calendar afterwards. You’ll need to add this to your stylesheet file:
    .tribe-events-grid .tribe-grid-content-wrap .column { width: 20%; }

    #134185
    jan
    Participant

    Thank you @Lars. Will try that. If i can’t get it working relatively quickly, i will get a refund and start over with one of the others. Another basic requirement is exposing Categories. While i have no problem spending another $65 (so $140 total) for software, just not sure what that $ goes towards if these basic, basic features are not being exposed and worked on.

    #134188
    Lars
    Participant

    What do you mean by “exposing Categories” ?

    #134190
    jan
    Participant

    I’m curious Lars, have you found a solution for the Monthly view too or just the weekly one?

    #134192
    Lars
    Participant

    No, we only use “Week view” so I haven’t customized Month View.

    #134196
    jan
    Participant

    By exposing, i meant: Filtering and color coding like the Ajax Event Calendar. Example: http://www.onthecuspstophai.org/on-the-cuspstop-cauti/calendar/
    The filter bar accomplishes this so that’s ok. https://theeventscalendar.com/shop/wordpress-events-filterbar/

    #134197
    Lars
    Participant

    You’ll need to use this add-on plugin for the category colors:

    The Events Calendar: Category Colors

    #135210
    Barry
    Member

    I just bought this and am feeling buyer’s remorse. Tell me one business user who does want to show weekend days on their calendar.

    We’re definitely listening and you are always welcome to post feature requests.

    Another basic requirement is exposing Categories. While i have no problem spending another $65 (so $140 total) for software, just not sure what that $ goes towards if these basic, basic features are not being exposed and worked on.

    As Lars highlighted (thanks!) this is possible with a third party plugin – The Events Calendar Category Colors. I do think it’s worth remembering that what you may see as  a basic and necessary feature may not be viewed as such by other viewers – who might regard those sorts of embellishments as bloat.

    At any rate, hopefully that plugin will get you on track and I’ll go ahead and close this thread – but if you have any further questions or specific concerns please feel free to create new threads as needed and one of the team will be only too happy to help 🙂

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Hide weekend days’ is closed to new replies.