• Resolved aegalan

    (@aegalan)


    Hi everybody! I want to color the row in the table of a grouping column, I have tried using “Color column” and “Conditional Formatting” in the column settings, but it doesn’t work. Please any advice is welcome.

Viewing 1 replies (of 1 total)
  • Plugin Author wpDataTables

    (@wpdatatables)

    Hi there.

    Conditional formatting and column colors don’t work since the column is being converted into rows.

    You can, however, add custom CSS in the “Customize” section above the table:

    .wpDataTable td.group{
        background: red;
    }
    .wpDataTable td.group:hover{
        background: blue;
    }

    Also, you can apply this only to certain table IDs. For example:

    .wpDataTableID-1 td.group{
        background: red;
    }
    .wpDataTableID-1 td.group:hover{
        background: blue;
    }

    Just make sure to change “1” with the ID of your table.

    Hope this helps!

    • This reply was modified 2 years, 6 months ago by wpDataTables.
Viewing 1 replies (of 1 total)
  • The topic ‘Coloring row group’ is closed to new replies.