PHP Classes

How to Use WordPress Dark Mode Plugin to Add a Switch Button to Turn the Dark Mode Using the Package Just Dark Mode Plugin: Add a dark mode option for WordPress site

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2025-08-30 (1 month ago) RSS 2.0 feedNot yet rated by the usersTotal: Not yet counted Not yet ranked
Version License PHP version Categories
just-dark-mode-plugi 1.0GNU General Publi...5PHP 5, Blogs
Description 

Author

This package provides a plugin that can add a dark mode option for WordPress site.

It can add a switch button to the pages of a WordPress site that allow uses to turn a mode that will appear dark.

The plugin provides a WordPress settings page that will allow the site administrator to configure where the dark mode switch button will appear.

Innovation Award
PHP Programming Innovation award nominee
August 2025
Number 6
WordPress is a PHP, popular content management system that can be extended using plugins that can alter various aspects of the way the system works.

One aspect that can be altered includes how pages of sites managed with WordPress is the way the site pages appear to the users.

This package implements a WordPress plugin that adds a dark mode switch button to let the users enable the site dark mode.

Manuel Lemos
Picture of Ákos Nikházy
  Performance   Level  
Name: Ákos Nikházy <contact>
Classes: 15 packages by
Country: Hungary Hungary
Age: 38
All time rank: 4703 in Hungary Hungary
Week rank: 46 Up1 in Hungary Hungary Up
Innovation award
Innovation award
Nominee: 6x

Instructions

Documentation

Just dark mode WordPress plugin

A dark mode switch for WordPress

I needed dark mode plugin, but all I found was a lot of bloatware that was too heavy to use, also phoned home, also made database tables with users ip addresses, that is not good if you want to be complient with GDPR and such.

Warning: This version is not the one that might or might not be on the official plugin directory. Use it if you want, but read the license.

How to install?

Just copy the post-grid-wordpress-plugin folder in wp-content/plugins/ folder. Or zip the folder and upload it on plugin admin page on WordPress.

Use cases

As it uses simple CSS `filter:invert(1)` trick, it might give you bad results with colorful sites. Best for greyscale sites. Also it does not invert images, videos and iframes.


  Files folder image Files (5)  
File Role Description
Files folder imagecss (1 file)
Files folder imagejs (1 file)
Accessible without login Plain text file just-dark-mode.php Appl. Application script
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (5)  /  css  
File Role Description
  Accessible without login Plain text file just-dark-mode-admin.css Data Auxiliary data

  Files folder image Files (5)  /  js  
File Role Description
  Accessible without login Plain text file just-dark-mode-admin.js Data Auxiliary data

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads  
 100%
Total:0
This week:0