TablePress styles datatables unconditionally
-
Hi,
I’m using TablePress for static tables on a small non-profit sports club website.
https://www.roystonarchery.org/
It was TablePress that introduced me to DataTables, for which I’m eternally grateful, as I’m now using DataTables directly, without TablePress, for our more dynamic content (members scorecards, club records etc.)However I’ve hit a problem. Although DataTables works fine on my test site without TablePress, on the real site there are significant problems which I’ve tracked down to TablePress css styling datatables constructs unconditionally.
For example it adds arrows to table headers, when I already have DataTables set up to get its arrow icons from a JQuery UI theme matching the site.
It seems to me that it should be pretty trivial to wrap all TablePress tables in a
div
with a class liketablepress-table
, and then change all of the css to use that class as a container. I might dig in to your code and see if I can submit a patch.In the meantime I’ve had to back up then replace the TablePress
default.min.js
with an empty file which fixes the DataTables issues and is preferable to deactivating TablePress, but the tablepress tables obviously don’t look so good.
- The topic ‘TablePress styles datatables unconditionally’ is closed to new replies.