Hi Vladimir,
Thanks for your post and sorry for the trouble!
I’m not sure that I understand. When I check your link, the header background color is black, with green text, which is done by the CSS code
.tablepress thead th,
.tablepress tfoot th {
background-color: #21202e !important;
color: #00ff00;
}
.tablepress thead .dt-ordering-asc,
.tablepress thead .dt-ordering-desc,
.tablepress thead .dt-orderable-asc:hover,
.tablepress thead .dt-orderable-desc:hover {
background-color: #21202e !important;
color: #00ff00;
}
in your “Custom CSS” text field on the “Plugin Options” screen of TablePress.
Best wishes,
Tobias
Hi Tobias, thank you for fast reply – my appologize, you are right. I checked it on my phone and tablet now, and the background color is right. Only on my desktop the table header background color is kind od blue – I am confused a bit. Cleared all cache, w/o change 🙁 Thats why I posted the question.
I will try to isnpect why … any how, thank you once again!
Kind regards, Vladimir
Hi @vladav,
no problem, you are very welcome! 🙂 Good to hear that this helped!
The difference to what you are seeing might be related to the optimization plugin that you are using. I think it’s returning different content depending on whether you are logged in or not.
Best wishes,
Tobias
P.S.: In case you haven’t, please rate TablePress in the plugin directory. Thanks!
Hey Tobias,
I noticed on the site I’m working that the background color doesn’t work if the header cell in question doesn’t have anything in it
for example: https://www.pesaysit.fi/edustus/ottelut
Hi @wolves27,
indeed, this is due to a recent change, which renders empty cells in the header row as td
elements, for better accessibility.
Due to this the CSS has to be updated, from
.tablepress thead th,
to
.tablepress thead tr > *,
Best wishes,
Tobias
Thanks again for your assistance. You’re a lifesaver.
Hi,
no problem, you are very welcome! 🙂 Good to hear that this helped!
Best wishes,
Tobias