Motion & effects · GUTENBERG BLOCK

Dark Mode Toggle.

A light/dark mode switcher. Adds a toggle button that persists the user's theme preference to localStorage and applies a data attribute to the root element.

SEE IT IN ACTION

A little room to experiment.

Interactive sample content. Figures, names and quotes are illustrative, not claims about Blockenberg customers.

Use the controls to explore the example. Scroll inside longer examples to see more. Your page content stays in the WordPress Block Editor.

MAKE IT YOURS

From this example
to your page.

Explore practical guides →

How do I add Dark Mode Toggle in WordPress?

  1. Install and activate Blockenberg, then open a page or post in the native WordPress Block Editor.
  2. Open the block inserter and search for Dark Mode Toggle. Add it at the position you want.
  3. Replace the example content with your own. Review the block settings for toggle style, show label, show icon, button size, transition duration, light color.
  4. Preview the frontend on desktop and mobile, test its interaction and save the page when the result is right.

What can I customize?

Toggle style, Show label, Show icon, Button size, Transition duration, Light color. The available options depend on the block; use its editor settings to inspect the controls in your installed version.

Does this require Elementor?

No. Blockenberg works in the native WordPress Block Editor. This is a Gutenberg block example.

Where do Free and Pro fit?

The base plugin supplies the block library. Premium page-template and section imports require the appropriate Pro access. Read the Free vs Pro guide or see the current pricing.