TablePress Dark Mode Solution (for Dark Mode Only)
-
Hello.
I’m relatively new to WordPress and I’m trying to get my TablePress table to look nice in both Light and Dark mode.I found this thread that offers a great solution, but it seems to change my TablePress table even when not in Dark mode.
@media (prefers-color-scheme: dark) { .tablepress thead th { background: #336699; } .tablepress .odd td { background: #4d4d4d; } .tablepress .even td { background: #3a3a3a; } .tablepress tbody td, .tablepress tfoot th { border-top: 1px solid #666; } }
I’ve tried using the solution provided above in the Custom CSS in the Theme, as well as in the TablePress Plugin, but the same happens.
I know this is not an issue with TablePress, but does anyone have any ideas how to implement this ONLY when Dark mode is active?
I’m using a WordPress theme, so didn’t set up the Dark mode myself.
Thanks.The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘TablePress Dark Mode Solution (for Dark Mode Only)’ is closed to new replies.