Pro · Site building and navigation

Dark mode switch block for WordPress

A button that switches the website between its light and dark colours, and remembers the visitor’s choice.

Live

The Dark mode switch block, working

This is the block itself, running on this page with sample content. Nothing here is a picture.

What you can change

  • Show label (on or off)

Also known as: dark, light, colour scheme.

Good to know

  • In Page Builder Sandwich Pro
  • Works in the WordPress block editor and in Sandwich Studio
  • Saved as an ordinary WordPress block, so your content stays yours
  • Its styles load only on the pages that use it

Questions about the Dark mode switch block

Is the Dark mode switch block free?

The Dark mode switch block comes with Page Builder Sandwich Pro, from $79 a year. Every Pro plan starts with a 14-day free trial, and no card is needed.

Does the Dark mode switch block work with my theme?

Yes. It is an ordinary WordPress block, so it works with any theme, in the block editor and in Sandwich Studio. Its styles load only on the pages that use it, so the rest of your site stays as fast as it was.

Can I try the Dark mode switch block before I install anything?

Yes. Open the live editor: your own copy of a demo page with Page Builder Sandwich and Page Builder Sandwich Pro, no sign-up, gone within the hour.

More blocks in Site building and navigation