I am looking to format the background/fill color of a cell without having to rely on the text content of the cell. is there a way to achieve this using css or to use non visible characters in the cell to trigger a color change.
I'm not sure if you wish to paint the background of only some cells, or all cells in a column.
If it's the former - you would need to use conditional formatting, but if it's the latter, you can add the CSS class "bckcolor" for example in column settings, and then go to wpDataTables settings/Custom JS and CSS and define that class in Custom CSS field:
Hi All,
I am looking to format the background/fill color of a cell without having to rely on the text content of the cell. is there a way to achieve this using css or to use non visible characters in the cell to trigger a color change.
Regards
Simon
Hello Simon
I'm not sure if you wish to paint the background of only some cells, or all cells in a column.
If it's the former - you would need to use conditional formatting, but if it's the latter, you can add the CSS class "bckcolor" for example in column settings, and then go to wpDataTables settings/Custom JS and CSS and define that class in Custom CSS field:
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