The Erudite
How to offer visitors the option to change the css to dark mode. (2 posts)

  1. GustavoSartori
    Posted 3 years ago #

    HI guys!

    I'm working in a site with The Erudite theme.
    The site is of a girl with vision problems and uses the theme because of the contrast. We would like to offer the visitor (who also have vision problems) the option to switch between light and dark mode.

    Is it possible?


  2. kyber
    Posted 3 years ago #

    You need theme switcher code or a plugin. A google will provide, but you will probably find this a good place to start: wordpress article on theme switching.

    However, I suspect the dark/light schemes are exactly the same theme with a simple CSS tweak. Look at the css file in the admin panel to see, you can include some very simple php code to set the appropriate switch I am sure.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic