TablePress and palette switch
-
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?
-
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,
TobiasHi Tobias,
This my temporary link https://testsite-aad.nl/open-repetitie/
I expect that the table-content also swichtes like the other content.
AadHi,
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,
TobiasSorry Tobias. I put the css-code to the css-opties of the plugin but nothing happenend?
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,
TobiasTobias,
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;
}Sorry. This code:
.dark .tablepress {
–text-color: white;
–head-bg-color: blue;
–odd-bg-color: black;
–even-bg-color: black;
–border-color: none;
}The single hyphen has to be a double-dash. But this does not help.
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,
TobiasSorry. I had removed the switch and table, but now I have reinstalled them. The dark-switch is part of the theme Neve.
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 3 years, 3 months ago by
Tobias Bäthge.
Yes. Now it’s oke. Thank you very much.
One remark. I changed “light” to “dark”. Now the table switches equal to the rest of the page.
I forget closing.
Hi,
ah, yes,
darkinstead oflightof course. Forgot to change that, sorry.Good to hear that this helped!
Best wishes,
TobiasP.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!
-
This reply was modified 3 years, 3 months ago by
The topic ‘TablePress and palette switch’ is closed to new replies.