This can be done with the some CSS code that needs to be added to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:
.tablepress .odd td { background-color: #ff0000; color: #00ff00; } .tablepress .even td { background-color: #00ff00; color: #0000ff; } |
You can change both the text colors (via the color
property) and the background colors (via the background-color
property) of odd and even rows. If you just want to change this for a specific table, use .tablepress-id-N
(with N
being the table’s ID) as the selector, instead of .tablepress
.