Comments fangquans started the conversationSeptember 22, 2020 at 4:30pmDear Support,I want to have the first column have even/odd row colors. How do I do it? This is for one table, not globally. Thanks for your help. 2,572Aleksandar repliedSeptember 24, 2020 at 8:21amHello fangquansYou can do this with some custom CSS.If you add this class (for example) to the column:You can define it in wpDataTables settings/Custom JS and CSS with this: table.wpDataTable tr.odd td.ccolor { background-color: green !important; } table.wpDataTable tr.even td.ccolor { background-color: blue !important; } And it will affect only columns that have this custom CSS class.Kind Regards, Aleksandar Vuković[email protected] Rate my support wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community You can try wpDataTables add-ons before purchasing on these sandbox sites: Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables Sign in to reply ...
Dear Support,
I want to have the first column have even/odd row colors. How do I do it? This is for one table, not globally.
Thanks for your help.
Hello fangquans
You can do this with some custom CSS.
If you add this class (for example) to the column:
You can define it in wpDataTables settings/Custom JS and CSS with this:
And it will affect only columns that have this custom CSS class.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables