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


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;
}

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: publish

Updated by  Tony 3 weeks, 6 days ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!