Support » Plugin: TablePress » background color of columns

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

    (@tobiasbg)

    Hi,

    something like this can be achieved by adding a command for the DataTables JS library, and then some CSS styling. Please try adding

    "bSortClasses": true

    to the “Custom Commands” textfield on the “Edit” screen of the table.
    This will basically tell the sorting to extend the column that’s currently sorted on, with a CSS class “sorting_1”.
    You can then style that with “Custom CSS” like this:

    .tablepress tbody tr .sorting_1 {
      background-color: #ff0000;
    }

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘background color of columns’ is closed to new replies.