• Resolved baraklevy

    (@baraklevy)


    Hi
    in this site, we made a product catalog and each product has a table, with different content.
    We need to colorize some rows inside each table, we know how to CSS-select a row by using the id. but we have many tables to manage…

    And we can’t rely on the row ID since tomorrow the customer will like to add information so the ID will change.

    The ideal solution was if there was a way to give the row a class. – can it be done?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    For this, you could use the approach from https://www.ads-software.com/support/topic/highlight-a-row-based-on-value/

    Regards,
    Tobias

    Thread Starter baraklevy

    (@baraklevy)

    we tried you can see it here:
    https://p1770-638-10515.s638.upress.link/application/open-bag-units/

    ?– but it is not working for us:

    1. we don’t need to show any additional content (like “yes”)

    2. we have some 2 words titles like “Suggested Uses” and this solution doesn’t support 2 words…

    3 .the words are not always the same inside all the tables …

    any other idea?

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    the words don’t have to be additional content or multiple words. They just have to be unique in the tables. So, here, I recommend to use “Suggested” as the word then.

    One extension of this approach would be to add another column to your table (maybe as a new first column), where you then add one “special” word, like highlight. You could then use this word with the TablePress Extension. In addition, you could use CSS code like

    .tablepress-id-123 .column-1 {
      display: none;
    }

    to hide the column. (You could actually even try the “Hide” button on the “Edit” screen, which might also work for hiding here, even with the Extension.)

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Colorize a specific rows in a series of tables with different row id’ is closed to new replies.