I have created a table based on a Google Sheet. In the first column of the Google sheet, I wanted to enter a 3 letter code (OCM). In WP Data Tables when the display is built I want to insert an image in the column anytime the letters OCM appear in the column. You can see in this screenshot => https://www.screencast.com/t/vW9mpa2BtG
This can be achieved with Conditional Formatting. Basically, you add a rule so when "OCM" is found in the column, the cell content is set to different content, like this:
In my example here, "D.C." is replaced with the image from our documentation:
I have created a table based on a Google Sheet. In the first column of the Google sheet, I wanted to enter a 3 letter code (OCM). In WP Data Tables when the display is built I want to insert an image in the column anytime the letters OCM appear in the column. You can see in this screenshot => https://www.screencast.com/t/vW9mpa2BtG
Can you show me how to make this happen?
Hey Scott.
This can be achieved with Conditional Formatting. Basically, you add a rule so when "OCM" is found in the column, the cell content is set to different content, like this:
In my example here, "D.C." is replaced with the image from our documentation:
By using this code:
So, the table would look like this:
I hope that helps.
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