Okay
  Public Ticket #1072241
Conditional formatting combined with non-default table colours 2
Closed

Comments

  •  4
    weihs5 started the conversation

    I am having the same issue as this ticket: https://tmsplugins.ticksy.com/ticket/990599/

    However, updating the javascript file did not work for me.  Has there been a change that prevents this fix? 

    Thank you.

  •   weihs5 replied privately
  • [deleted] replied

    Hi weihs5,

    Did you change wpdatatables.js or wpdatatables.min.js file? Do you have checked Use minified wpDataTables Javascript on wpDataTables settings page?

  •  4
    weihs5 replied

    I've changed the javascript file and then minified it and I've tried with the box checked and unchecked and nothing yet.  I will do more troubleshooting today.

  •  4
    weihs5 replied

    I've found a #ffffff !important css tag on my odd and even rows and if I remove that it works.  I am going to try to find it.

  •  4
    weihs5 replied

    Fixed my problem!  What I found out was that the color picker in the settings was adding an !important tag when it changed the color of the row.  What I did was cleared those selections and manually added the following in the custom css area.  Note it is the same css from what the color pickers would have implemented except I removed the !important tag.  This fixes my problem and now conditional formatting works.

    .wpDataTablesWrapper table.wpDataTable tr.odd td {
    background-color: #ffffff;
    }

    .wpDataTablesWrapper table.wpDataTable tr.even td {
    background-color: #ffffff;
    }


  • [deleted] replied

    Hi weihs5,

    I am glad that you have resolved your issue