• Resolved Vladimir

    (@vladav)


    Hi, I need help with header row color change – since unknoww time, the header row color is changed from black – and I cant take it back 🙁 I search internet, and no way I found works 🙁

    Any help is appreciated.
    Kind regards, Vladimir

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    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

    Thread Starter Vladimir

    (@vladav)

    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

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    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

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    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.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.