How-to guide

How to add dark mode to WordPress

Readers of a blog often arrive late in the evening. Give them a switch: one line in your footer adds a pull cord that darkens any WordPress theme and leaves your images untouched.

  • One-time payment
  • Made for WordPress
  • Live in about 5 minutes
Light Switch: How to add dark mode to WordPressTry it live ↓

Try Light Switch right here

Pull the cord at the top right (drag it down, or click it) and the lights go out.

Works with any theme and any page builder

Images, embeds and videos keep their colours

Remembered for every reader, on every post

How to add it to WordPress

Buy once, add your website in Fluri and pick Light Switch. You get one line of code like this:

<script defer src="https://fluri.xyz/install/loader.js"
  data-site="your-site-key"></script>

After that, change settings, pause it or switch themes from your dashboard. You never edit your site again.

  1. In WordPress, go to Plugins → Add New and install a header and footer code plugin such as WPCode.
  2. Open Code Snippets → Add Snippet → Add Your Custom Code, and choose HTML snippet.
  3. Paste your Fluri snippet, set Location to Site Wide Footer and switch the snippet to Active.
  4. Save, open your website and press Check installation in your Fluri dashboard.

On a classic theme you can instead paste the snippet just before </body> in your theme’s footer.php (use a child theme so updates don’t remove it). Full WordPress guide

Questions

Something else? Send us a message.

Do I need a dedicated dark mode plugin for WordPress?

No. You paste one script tag into your site footer once, with a header and footer code plugin such as WPCode. Nothing else is installed on your server.

Does it work with Elementor, Divi or the block editor?

Yes. It darkens the finished page in the reader’s browser, so it doesn’t matter which builder made it.

Does it slow WordPress down?

The loader is a few kilobytes and loads after your page, and nothing runs on your server.

How much does it cost?

$19 once, with no subscription. That includes Light Switch and all 65 other themes, on as many websites as you like.

Give your website a little life today.

Pick a theme, pay once, paste one line. It’s live in minutes.