column alternate colors
-
How can I change the column to alternate colors like rows.I do see rows example but not columns.
thanks
-
Hi,
thanks for your question, and sorry for the trouble.
For this, you could e.g. use “Custom CSS” code like
.tablepress-id-123 tr td:nth-child(even) { background-color: #ff0000 !important; } .tablepress-id-123 tr td:nth-child(odd) { background-color: #00ff00 !important; }Additionally, turn off the “Alternating row colors” checkbox on the table’s “Edit” screen to avoid conflicts.
Regards,
TobiasThanks that works good.How can I make rows and column border so each cell can see as a small box.Do I need to put borders ?
Hi,
yes, for that you would need to add borders, e.g. with
.tablepress-id-123 th, .tablepress-id-123 td { border: 1px solid #cccccc; }Regards,
Tobiasits not working its shows when it loads and suddenly borders
disappearHi,
Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!
Regards,
TobiasHi,
does this happen when you uncheck the “Use DataTables” button?
Also, there’s a JavaScript error on your site, caused by a missing “superfish” function (see the JS error log console in the browser), that you should fix. It might also be interfering here.
Regards,
Tobiasit does not happen when I uncheck the data tables button.I don’t know how to fix javascript error.Can you help?Thanks
Hi,
ok, the problem seems to be trigger by the issue described at https://tablepress.org/faq/js-functions-not-working/
Your theme is loading an old version of the jQuery JS library. Please try the suggestions in that link to fix that.
Also, please turn on “Use DataTables” again (if you want to use the features).Regards,
TobiasThanks Also your this page https://tablepress.org/extensions/datatables-fixedheader/
has missing information in between like the code in boxes how to setup fix header.Hi,
oh, thanks for letting me know! That’s strange. I cleared the cache and the code should be visible again now.
Regards,
TobiasI tried everything but its still now working .What else could be the problem?
I can email you user name and password if you like to check?Hi,
ok, if possible, I’d like to take a direct look at this on your site. Could you therefore please create a temporary admin account for me and send me the details via email (the address is in the main plugin file “tablepress.php”)? That way, I can investigate this directly. Thanks!
Regards,
Tobiasemailed thanks
Hi,
thanks! I have received the email and will take a look as soon as possible!
Regards,
Tobias
The topic ‘column alternate colors’ is closed to new replies.