Dark Mode Block
Dark Mode Block is a simple yet powerful WordPress block plugin that allows you to enable dark mode for your website, enhancing readability and reducing eye strain without altering your website’s colors. Give your users…
Envisager une alternative
Dark Mode Block shows warning signs in 2026 — compare the alternatives below before installing. Is rated 5/5 and was last updated 3 years ago, and scores 28/100 on our health check.
- Petite base d'utilisateurs (<10 installations actives)
- Très peu de critiques jusqu'à présent
- Pas de mise à jour dans 2 ans
- Uniquement testé jusqu'à WordPress 6,4 (le dernier est de 7,1)
Comment s'accumule-t-il ?
Côte à côte sur les installations, les mises à jour, les évaluations et le supportTéléchargements quotidiens
Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.
Classements
Where Dark Mode Block stands todayWordPress.org Classements de recherche
Position en direct dans la recherche de plugins, Top 100| Mot-clé | Position |
|---|---|
| bloc | >100 |
| css | >100 |
| mode sombre | >100 |
| thème | >100 |
Répartition des notes
★★★★★ ★★★★★ 5 sur 4 avis
About Dark Mode Block
From the official readme · v0.1.1Description
Dark Mode Block is a simple yet powerful WordPress block plugin that allows you to enable dark mode for your website, enhancing readability and reducing eye strain without altering your website’s colors. Give your users the flexibility to switch between light and dark modes seamlessly.
Designed to be lightweight and efficient the whole frontend script weights less than half of a kb gzipped 😉
Features:
– Toggle dark mode with a user-friendly icon.
– Preserve your website’s color scheme while improving readability in low-light environments.
– Enhanced user experience with reduced eye strain.
– Customizable
Make your website more accessible and user-friendly by offering a dark mode option. With Dark Mode Block, your users can enjoy your content without compromising on aesthetics.
Usage
- After activating the plugin, add the “Dark Mode” block to your WordPress page or post editor.
- Publish or update your content.
Customization
Unleash your creativity! This block is designed to be fully customizable graphically, and since it’s entirely CSS-based, it’s straightforward for anyone to modify and adapt it according to their own taste or template.
You even have control over how the dark mode is applied! Currently, I’ve applied an invert filter on the background as I don’t know the variables in your template.
However, you have the flexibility to make it even better by setting the text color as the background and vice versa.
Here’s how to do it:
- Add the following code to your functions.php file.
- Edit the $custom_css in order to fit your preferences
First dequeue the current style in this way:
add_action( 'wp_enqueue_scripts', function () {
/** dequeue the default dark mode */
wp_dequeue_style( 'codekraft-dark-mode-style' );
}, 9 );
Then add yours!
add_action( 'wp_head', function () {
/** @var {string} $custom_css - your custom css for the dark mode */
$custom_css = "html.dark-mode body {
--wp--preset--color--background: #232323;
--wp--preset--color--foreground: #f3f3f3;
}
.dark-mode-switch::before {
width: 1.6rem;
cursor: pointer;
display: flex;
font-size: 1.6rem;
line-height: 1.6rem;
content: '🌞'
}
.dark-mode .dark-mode-switch::before {
content: '🌚'
}";
echo "<style id='dark-mode-custom'>$custom_css</style>";
}, 20 );
Please support the plugin posting your custom style and a screenshot in the WordPress support forum section!
Installation
- Upload the ‘dark-mode-block’ folder to the ‘/wp-content/plugins/’ directory.
- Activez le plugin via le menu "plugins" dans WordPress.
Journal de modifications
0.1.0
- Communiqué initial
Pour les développeurs
Est-ce votre plugin ? Montrez les chiffres.
Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.
Best Dark Mode Block alternatives
Tous les plugins de blocs →FAQ
Dark Mode Block: quick answers
Réponses directes, extraites des données en direct WordPress.org.
Source : WordPress.org
Is Dark Mode Block free?
Yes. Dark Mode Block is free to download and use from the official WordPress.org plugin directory.
Is Dark Mode Block safe to use in 2026?
Dark Mode Block shows warning signs in 2026 — compare the alternatives below before installing. Is rated 5/5 and was last updated 3 years ago, and scores 28/100 on our health check.
How many websites use Dark Mode Block?
Dark Mode Block is active on <10 WordPress websites and has been downloaded 3,599 times since it launched in January 2024. It was downloaded 139 times in the last 30 days.
Does Dark Mode Block work with WordPress 7.1?
Dark Mode Block is officially tested up to WordPress 6.4.15, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
What PHP version does Dark Mode Block need?
Dark Mode Block requires PHP 5.6 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Dark Mode Block last updated?
The latest version, 0.1.1, was released on March 6, 2024 (3 years ago).
Who makes Dark Mode Block?
Dark Mode Block is developed and maintained by Erik.
What are the best alternatives to Dark Mode Block?
The most popular alternatives to Dark Mode Block are Spectra Legacy (1M+ installs), Breadcrumb NavXT (700K+ installs) and PDF Embedder (300K+ installs).
Propulsé par PageForge
Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.
PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.
- CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
- Son propre titre, URL, SEO champs et schéma pour chaque page
- Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
- Gratuit sur WordPress.org, pas de carte de crédit
