Style all-day events differently

Home Forums Calendar Products Events Calendar PRO Style all-day events differently

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #941330
    DAVE
    Participant

    Hi,

    Thanks for the great plugin!

    I was wondering if it’s possible to style all-day events differently. Is there any setting for it or a css class? The goal is to have all-day event days filled with solid colour in the calendar views.

    Cheers!

    #941426
    Brian
    Member

    Hi,

    Thanks for using our plugins.

    We do not have a built in feature to add a class if it is an all day event in the views.

    We do have a function:

    tribe_event_is_all_day

    https://theeventscalendar.com/function/tribe_event_is_all_day/

    Using that you could detect if the event is all day and then following our themer’s guide:

    https://theeventscalendar.com/knowledgebase/themers-guide/

    Add classes to the Events in the different views so you can style them differently.

    Let me know if you have any follow up questions.

    Thanks

    #941907
    DAVE
    Participant

    Perfect, thanks! Made it work.

    #941949
    Brian
    Member

    Great, glad it helps, I am going to go ahead and close this ticket, but if you need help on this or something else please post a new ticket.

    Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Style all-day events differently’ is closed to new replies.