Calendar View CSS Classes

The legacy calendar views in The Events Calendar 4 and below introduced a way to make it easier to customize how calendar pages are styled by adding classes to the body (<body>) element of the page that can be use to target specific calendar views.

The updated calendar views in The Events Calendar 5 take a slightly different track: your themes handle everything outside of the calendar views and no body classes are added to the page. If you were using body classes to style legacy calendar views, you may need to adjust your CSS to use the new CSS classes in The Events Calendar 5.

We’ll show you how to add some styling based on which view you are on below.

👋 If you really need to style a page outside of the calendar view, all of the views below add the same class to the body: .post-type-archive-tribe_events. You can use this to target any of these views, along with .single-tribe_events for single event pages.

The calendar container classes

Each calendar view is wrapped in a div (<div>) that separates calendar content from other content on the page. This div shares many classes between the views, but each has one is specific to the current view as well.

The div around the calendar acts as a container that holds the calendar and all of the content inside of it.
ViewCSS Class
Month View.tribe-events-view--month { }
List View.tribe-events-view--list { }
Day View.tribe-events-view--day {}
Week View Pro.tribe-events-view--week { }
Map View Pro.tribe-events-view--map { }
Photo View Protribe-events-view--photo { }

These can then be combined with other classes to target specific elements in the view. For example, all of the views render events as <article> elements, with a class of .type-tribe_events. So if you wanted to, say, change the background color of the individual events on the map view, you could use this:

.tribe-events-view--map .type-tribe_events {
  background-color: #ff2052;


Report an issue