Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author wpDataTables

    (@wpdatatables)

    Hello.
    Firstly, we would like to sincerely apologize for the delayed response as we have been experiencing an unusually high number of tickets.
    I am sorry that it has taken longer than usual to respond to your concern and your patience is highly appreciated.


    If we understand what you need correctly,
    do you need to keep a background color for a row after it’s been clicked?
    At the moment, we don’t have a user-friendly solution for something like that.
    If you wish to see a user-friendly option for this in the future,
    please feel free to search?on our suggestions page,?

     to see if someone may be already suggested this feature. If you can’t see it, feel free to add your suggestion there,  and as more people vote, the feature will move higher on the priority list.

    You can certainly follow our changeLog page if you’d like ( it is also available in the plugin dashboard), where we state any changes/new features/bug fixes during updates;

    and?our newsletter,?so you’re informed about new features, bug fixes, freebies, etc.

    Right now, we have a solution for a background color of rows on hover,
    you could add this CSS in the main plugin settings/Custom JS and CSS/Custom CSS :

    table.wpDataTable tr:hover> td{
    background-color : green !important;
    }


    If you need a different background color for different tables,
    you can add table ID to this CSS, like :

    table.wpDataTable.wpDataTableID-76 tr:hover> td{
    background-color : green !important;
    }

    But for an “on click” functionality, if you need a solution now,
    our support is not able to cover custom solutions,
    so you would have to search online on places such as Stack Overflow or similar resources,
    see if any other user found a custom workaround to create a JS script as an “on click” listener which could add CSS to an HTML element, then try to modify that to apply it on a clicked table row.
    Kind regards.

    Thread Starter zatanx

    (@zatanx)

    Yes.

    i need to keep a background color for a row after it’s been clicked.

    Plugin Author wpDataTables

    (@wpdatatables)

    Hello.
    Firstly we apologize for such a late reply on your topic here.
    Sorry to disappoint you, but as mentioned earlier,
    for a use-case when you need the background color to stay after a user has clicked it,
    something like this is not currently possible with any built-in functionalities we have.
    You can make a user suggestion though, and our management and Planning Team will do their best to make a solution in the future.


    Please feel free to search on our suggestions page (https://features.wpdatatables.com/),
    to see if someone may be already suggested this feature.
    If you can’t see it, feel free to add your suggestion there, and as more people vote, the feature will move higher on the priority list.
    You can certainly follow our changeLog if you’d like(https://www.ads-software.com/plugins/wpdatatables/#developers),
    where we state any changes/new features/bug fixes during updates; and our newsletter(https://wpdatatables.com/newsletter/), so you’re informed about new features, bug fixes, freebies, etc.

    If you wish to try and devise a custom solution, you can search online on resources such as Stack Overflow and similar,
    to see if any user made a solution,
    then you can try it on your table(s),
    you can add Custom JS and CSS to the main plugin settings/Custom JS and CSS;
    but our Support is not able to provide any troubleshooting for such custom work.
    Kind regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hold Background for click rows’ is closed to new replies.