All day events not showing on calendar views

Home Forums Calendar Products Events Calendar PRO All day events not showing on calendar views

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1113539
    Andrew Bacon
    Participant

    I’ve found threads asking how all day events can be suppressed on calendar views, but all day events aren’t showing up on my calendar at http://colonialinnolympia.npdstaging.space/events/.

    What’s up with that? 🙂

    #1113540
    Andrew Bacon
    Participant

    Cinco de Mayo should show up on the 5th of May, for example. Thanks!

    #1113542
    Andrew Bacon
    Participant

    Never mind. I set the date wrong. It’s stupid mistake day here at my desk.

    #1113543
    Andrew Bacon
    Participant

    Is there a way to add a class to all day events so that I can display them differently on the calendar?

    #1113610
    Brook
    Participant

    Howdy NPD,

    No worries there, happens to all of us!

    You can definitely add a class to all day events. It will require creating a theme override and thus some knowledge of PHP. Do you feel comfortable with those? If this is you  first one I’d recommend first familiarizing yourself with Themer’s Guide . Once done there create an override for /the-events-calendar/src/views/month/single-event.php and navigate down to the third line from the bottom. This outputs the event classes for each event in Month View. Using the function tribe_event_is_all_day( $event_id ) you  can tell if you an even is an all day one. If it is, output your special class.

    Does that all make sense? Will that work for you? Please let me know.

    Cheers!

    – Brook

    #1113618
    Andrew Bacon
    Participant

    Actually, it was a lot easier than that. If you assign a category to an event, the calendar gives it a class. Crazy easy.

    #1113619
    Andrew Bacon
    Participant

    I should have come back in and let you know I’d solved it but I was crosseyed by then. You know how it is.

    #1114030
    Brook
    Participant

    Thanks for getting back! I really appreciate. Great idea with using categories, definitely less code needed.

    Cheers!

    – Brook

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘All day events not showing on calendar views’ is closed to new replies.