Support

Home Forums Event Espresso Premium Change color according to category in table view?

Change color according to category in table view?

Posted: June 12, 2020 at 5:11 am

Viewing 1 reply thread


benzett

June 12, 2020 at 5:11 am

is it possible to change the color of events in the table view according to their category?


Tony

  • Support Staff

June 12, 2020 at 7:09 am

Hi there,

The table view adds the category slug to each row, so you can add some additional CSS to style those, for example:

.espresso-table-row.live-veranstaltung {
    background-color: red;
}

Will set the background colour of events in the live-veranstaltung category to red, you can obviously set your own colours. Then for additional categories you would add another, so:

.espresso-table-row.live-veranstaltung {
    background-color: red;
}
.espresso-table-row.online-veranstaltung {
    background-color: yellow;
}
Viewing 1 reply thread

The support post ‘Change color according to category in table view?’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso