• Resolved aads4

    (@aads4)


    With my wordpress-theme I can do a palette-switch on each page. The content of the page switches then also. The content stays visible.
    But TablePress tables does not do this.
    What I have to do?

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    I’m not sure what you mean here. Can you please explain this some more? 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,
    Tobias

    Thread Starter aads4

    (@aads4)

    Hi Tobias,
    This my temporary link https://testsite-aad.nl/open-repetitie/
    I expect that the table-content also swichtes like the other content.
    Aad

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    ah, you mean the light/dark color switch?

    For this, you will then have to set your desired colors, with CSS code. For example, add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    .dark .tablepress {
        --text-color: #111111;
        --head-bg-color: #d9edf7;
        --odd-bg-color: #f9f9f9;
        --even-bg-color: #ffffff;
        --border-color: #dddddd;
    }

    Change the color values to what you like.

    Regards,
    Tobias

    Thread Starter aads4

    (@aads4)

    Sorry Tobias. I put the css-code to the css-opties of the plugin but nothing happenend?

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    you will first have to change the colors to what you like. The values in the code right now are the default values (that you can see in the light mode).

    Regards,
    Tobias

    Thread Starter aads4

    (@aads4)

    Tobias,
    I use this css code below, but nothing happens. What am I doing wrong?
    .dark .tablepress {
    –text-color: white;
    –head-bg-color: blue;
    –odd-bg-color: black;
    –even-bg-color: black;
    –border-color: none;
    }

    Thread Starter aads4

    (@aads4)

    Sorry. This code:
    .dark .tablepress {
    –text-color: white;
    –head-bg-color: blue;
    –odd-bg-color: black;
    –even-bg-color: black;
    –border-color: none;
    }

    Thread Starter aads4

    (@aads4)

    The single hyphen has to be a double-dash. But this does not help.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    that’s strange. The code looks correct and has been added correctly.

    But right now, I can’t seem to find the palette switch button anymore? Have you turned that off again?

    Regards,
    Tobias

    Thread Starter aads4

    (@aads4)

    Sorry. I had removed the switch and table, but now I have reinstalled them. The dark-switch is part of the theme Neve.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks! Ah, we’ll need a slightly different CSS selector. Please try again with

    [data-neve-theme="light"] .tablepress {

    instead of

    .dark .tablepress {

    Regards,
    Tobias

    • This reply was modified 1 year, 9 months ago by TobiasBg.
    Thread Starter aads4

    (@aads4)

    Yes. Now it’s oke. Thank you very much.

    Thread Starter aads4

    (@aads4)

    One remark. I changed “light” to “dark”. Now the table switches equal to the rest of the page.

    Thread Starter aads4

    (@aads4)

    I forget closing.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    ah, yes, dark instead of light of course. Forgot to change that, sorry.

    Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘TablePress and palette switch’ is closed to new replies.