Enable Dark Mode

Switch Dark Mode on, choose the mode visitors start in, add a schedule, and see the switch appear on your site.

Dark Mode gives your site a dark version and a switch that lets each visitor choose. This guide gets it working in a few minutes; the two guides after it cover the switch and the colours.

A page in light mode, with the switch in the bottom right corner
A page in light mode, with the switch in the bottom right corner
The same page after the visitor switched to dark mode
The same page after the visitor switched to dark mode

1. Check that the tool is on#

Open Wing Suite → Modules and make sure Dark Mode is switched on. It is on after installation.

2. Open the General section#

Go to Wing Suite → Dark Mode. The first section, General, decides how dark mode behaves:

The General section of Dark Mode
The General section of Dark Mode
Setting What it does
Enable dark mode The main switch for the front end of your site.
Default mode What a visitor sees before they touch the switch: Follow the visitor's device, Light or Dark. "Follow the visitor's device" reads the visitor's operating system preference and follows it live.
Remember the visitor's choice Keeps each visitor's choice in their own browser, so the next page and the next visit open the same way.
Cross-fade the change A change of mode is instant by default. Switch this on for a soft cross-fade.

Save, open your site, and the floating switch is in the bottom right corner.

3. Add a schedule (optional)#

Switch on Dark mode on a schedule and set Dark from and Dark until, for example 19:00 and 07:00. The site then turns dark every evening and light again in the morning, on each visitor's own clock. A visitor who uses the switch keeps their choice until the next change of the schedule.

The schedule: dark from the evening until the morning
The schedule: dark from the evening until the morning
Wing Popup Pro

With Wing Suite Pro, Follow sunset and sunrise turns the site dark from sunset to sunrise where the visitor is, On these days limits the schedule to chosen weekdays, and Only between these dates to a period.

Sunset and sunrise, weekdays and dates in Wing Suite Pro
Sunset and sunrise, weekdays and dates in Wing Suite Pro
  • Keyboard shortcut: visitors can press the keys in Shortcut keys (Ctrl + Alt + D by default) to change the mode.
  • URL parameter: add ?wsdm=dark or ?wsdm=light to any address of your site to open it in that mode. Handy for testing and for sharing a link.

Dark mode for your own dashboard#

The Dashboard section adds a dark mode to the WordPress admin, with a switch in the toolbar and a preference per user.

Good to know#

  • The mode is decided before the page is painted, so a dark page is dark from its first frame.
  • Each visitor's mode is decided in their own browser, so page caching works as usual.
  • To keep a page, a post type or single elements as they are, see Colours, images and exclusions.

Did this not answer your question?

Send us what you are trying to do and we will help, and improve this page.

Contact support