Title: Conditional Formatting
Last modified: November 28, 2017

---

# Conditional Formatting

 *  Resolved [davidpapenfus](https://wordpress.org/support/users/davidpapenfus/)
 * (@davidpapenfus)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/conditional-formatting-4/)
 * Hi Tobias
 * Using TablePress, I would like to implement conditional formatting, so I can 
   colour cells (or rows) based on the content of Country or Province columns.
 * I’ve installed the Cell Highlighting extension, but struggling to follow the 
   instructions on the FAQ: “How can I highlight certain cells or their content?”
   I can’t work out where “<span class=”hilite”>your important value</span>” goes.
 * For my example, if Province is “Western Cape”, the cell should be highlighted
   in blue. What CSS & HTML should I put where?
 * table id=2
 * My client may change her mind, and request the whole row is coloured blue, so
   if you could help me with this aswell, that would be great.
 * Thanks very much
    David
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fconditional-formatting-4%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/conditional-formatting-4/#post-9731036)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * The FAQ entry has nothing to do with the Cell Highlighting Extension. That works
   more like the approach from [https://wordpress.org/support/topic/highlight-a-row-based-on-value/](https://wordpress.org/support/topic/highlight-a-row-based-on-value/)
   with different “Custom CSS”.
 * Regards,
    Tobias
 *  [rezadan](https://wordpress.org/support/users/rezadan/)
 * (@rezadan)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/conditional-formatting-4/#post-9956323)
 * Hi Tobias,
 * I have a column with dates; some are future dates while some are past dates. 
   Would it be possible to conditionally reformat the cells whose date is less than
   today? For example, change the colour of the cell background for those whose 
   content is less than today.
 * Regards,
    Reza
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/conditional-formatting-4/#post-9956348)
 * Hi,
 * thanks for your question, and sorry for the trouble.
 * Sorry, I don’t know a direct solution for this at the moment. Your best chance
   would to be to develop a custom extension, e.g. based on the approach that I 
   mentioned above.
 * Regards,
    Tobias

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

The topic ‘Conditional Formatting’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

## Tags

 * [conditional formatting](https://wordpress.org/support/topic-tag/conditional-formatting/)

 * 3 replies
 * 3 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/conditional-formatting-4/#post-9956348)
 * Status: resolved