Title: conditional layout
Last modified: January 9, 2019

---

# conditional layout

 *  Resolved [haroldbier](https://wordpress.org/support/users/haroldbier/)
 * (@haroldbier)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/conditional-layout/)
 * Hi Tobias,
    I wanted to know if it was possible to apply a particular style on
   a row of an array based on the contents of a cell. I use your plugin to create
   a price list for a real estate website and I need to change the color of the 
   information contained in a line according to the availability status of a product:
   free, reserved, sold . Thanks for your help cordially Harold
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fconditional-layout%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/conditional-layout/#post-11068297)
 * Hi,
 * thanks for your question, and sorry for the trouble.
 * Yes, this is possible using a TablePress Extension. For some ideas, please see
   [https://wordpress.org/support/topic/highlight-a-row-based-on-value/](https://wordpress.org/support/topic/highlight-a-row-based-on-value/)
 * Regards,
    Tobias
 *  Thread Starter [haroldbier](https://wordpress.org/support/users/haroldbier/)
 * (@haroldbier)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/conditional-layout/#post-11068759)
 * Hi thanks o lot
    I put this code [table id=123 row_highlight=”YES” /] in Custom
   command of the java library and the css class in the custom css of the option
   tab and i also add the content “yes” to reproduce the solution you sent me but
   it does not work. I may not have done things correctly?
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/conditional-layout/#post-11068784)
 * Hi,
 * no, that’s not the correct steps. That code is the Shortcode, which you have 
   to use on the page where you are displaying the table.
 * Regards,
    Tobias
 *  Thread Starter [haroldbier](https://wordpress.org/support/users/haroldbier/)
 * (@haroldbier)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/conditional-layout/#post-11072072)
 * Hi
    thank you for the answer when i put this additional css class in the table
   options .tablepress-id-123 .row-highlight-yes td {background-color: # 0093be!
   important; it does not work and it does not work either if I put this class in
   the array options here the link of the web page [http://t62-dev-wp1.noogaa.com/test-page-table-press/](http://t62-dev-wp1.noogaa.com/test-page-table-press/)
 * Regards,
    Harold
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/conditional-layout/#post-11072094)
 * Hi,
 * you must of course change the table ID in the CSS from 123 to the correct table
   ID of your table 🙂
 * Regards,
    Tobias
 *  Thread Starter [haroldbier](https://wordpress.org/support/users/haroldbier/)
 * (@haroldbier)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/conditional-layout/#post-11072122)
 * Ok, but it’s the correct table ID
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/conditional-layout/#post-11072251)
 * Hi,
 * ah, sorry, my bad. I hadn’t realized that you had changed the table ID.
 * Did you also download, install, and activate the TablePress Extension from the
   link and adjust the Shortcode?
 * Regards,
    Tobias
 *  Thread Starter [haroldbier](https://wordpress.org/support/users/haroldbier/)
 * (@haroldbier)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/conditional-layout/#post-11072285)
 * HI
    yes I download and install this extension [https://wordpress.org/support/topic/highlight-a-row-based-on-value/](https://wordpress.org/support/topic/highlight-a-row-based-on-value/)
 * in my page I’ve got this shortcode [table id=123 row_highlight=”YES” /]
    and 
   in the css class in the table options .tablepress-id-123 .row-highlight-yes td{
   background-color: # 0093be! important;
 * Regards,
    Harold
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/conditional-layout/#post-11072617)
 * Hi,
 * and the Extension is really activated? Can you also please try changing the highlight
   term from “YES” to “Yes” (which is what you have in the table)?
    Can you then
   please also save the table again to clear the cache?
 * Regards,
    Tobias
 *  Thread Starter [haroldbier](https://wordpress.org/support/users/haroldbier/)
 * (@haroldbier)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/conditional-layout/#post-11072970)
 * HI
    yes the extension is activated i change highlight term from “YES” to “Yes”,
   save and clear the cash but noting working. can this be due to elementor or toolset?
   Regards, Harold
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/conditional-layout/#post-11072985)
 * Hi,
 * no, I don’t really think so. If possible, I’d like to take a direct look at this
   on your site. Could you therefore please get in touch via email (the address 
   is in the main plugin file “tablepress.php”)? That way, I can investigate this
   directly. Thanks!
 * Regards,
    Tobias
 *  Thread Starter [haroldbier](https://wordpress.org/support/users/haroldbier/)
 * (@haroldbier)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/conditional-layout/#post-11073610)
 * Hi
    ok I give you this tomorrow Regards, Harold
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/conditional-layout/#post-11076413)
 * Hi Harold,
 * sounds good!
 * Regards,
    Tobias

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

The topic ‘conditional layout’ 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/)

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