Title: CSS based on custom attribute?
Last modified: August 24, 2016

---

# CSS based on custom attribute?

 *  Resolved [dustinw](https://wordpress.org/support/users/dustinw/)
 * (@dustinw)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/css-based-on-custom-attribute/)
 * Hello, this plugin is very helpful, but I’d like to make a modification if it’s
   possible.
 * Is there a way to color a table row based on a custom attribute?
 * For example, I’ve created a custom attribute called “Confirmed”, with a choice
   of either “Yes” or “No”. I’d like to color the table row green if the value is“
   Yes”.
 * Would something like this be possible?
 * [https://wordpress.org/plugins/events-manager/](https://wordpress.org/plugins/events-manager/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/css-based-on-custom-attribute/#post-6023133)
 * Hi,
 * Glad you’re enjoying the plugin. Where do you want to show the different colored
   rows?
 *  Thread Starter [dustinw](https://wordpress.org/support/users/dustinw/)
 * (@dustinw)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/css-based-on-custom-attribute/#post-6023134)
 * Thanks for the response!
 * I’d like to have it shown on the events page. The page that lists all upcoming
   events in a table, with the search bar above.
 *  Thread Starter [dustinw](https://wordpress.org/support/users/dustinw/)
 * (@dustinw)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/css-based-on-custom-attribute/#post-6023354)
 * Did you happen to have any ideas regarding styling the rows based on a custom
   attribute?
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/css-based-on-custom-attribute/#post-6023359)
 * In that case you’d need to edit the “Default event list format” under Events 
   > Settings > Formatting > Events.
 * You’d probably need to create you own conditional placeholder based on the custom
   attribute you’re using:
 * [http://wp-events-plugin.com/tutorials/creating-conditional-placeholders-for-events/](http://wp-events-plugin.com/tutorials/creating-conditional-placeholders-for-events/)

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘CSS based on custom attribute?’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

## Tags

 * [color](https://wordpress.org/support/topic-tag/color/)
 * [custom attribute](https://wordpress.org/support/topic-tag/custom-attribute/)

 * 4 replies
 * 2 participants
 * Last reply from: [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/css-based-on-custom-attribute/#post-6023359)
 * Status: resolved