Custom Body Class
A plain simple plugin which allows you to add a custom CSS class the HTML body tag.
Utiliser avec prudence
Custom Body Class works, but test it on a staging site before relying on it in 2026. It runs on 10K+ sites, is rated 5/5 and was last updated 1 year ago, and scores 45/100 on our health check.
- Prouvé à grande échelle sur plus de 10 000 sites actifs
- Loved by users — 5/5 from 21 reviews
- Momentum — downloads up 24.2% vs the previous 30 days
- Pas de mise à jour depuis plus d'un an
- Uniquement testé jusqu'à WordPress 6,8 (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 Custom Body Class stands todayWordPress.org Classements de recherche
Position en direct dans la recherche de plugins, Top 100| Mot-clé | Position |
|---|---|
| body | #2 |
| css | >100 |
| custom | >100 |
Adoption de version
Part de sites actifs par version.
Répartition des notes
★★★★★★★★★★ 5 from 21 reviews
About Custom Body Class
From the official readme · v0.7.5Description
You can use this plugin to add a unique CSS class to your pages or posts.
Demo
TasteWP has prepared a quick WordPress instance with this plugin, so you can give it a try in this demo
Responsiveness
There’s a way to add a class to appear only on mobile devices. You can do that by simply adding mobile- on the front of
the class. For example, if you want to have the class “car” for mobile side, you need to use “mobile-car”.
Support me
If you find this plugin helpful, or you just want to send me a coffee here are the ways:
- Use the Github Sponsor button
- Ko-fi
- Watch me coding on twitch.tv/thelup
- Or simply visit my site lup.dev and make those analytics ring the bells.
Installation
- Install Custom Body Class either via the WordPress.org plugin directory, or by uploading the files to your
/wp-content/plugins/directory - After activating Custom Body Class go to any edit page and see the Custom Body Class metabox in the right sidebar.
Journal de modifications
0.7.5
- Fix: Fixed a notice about textdomain loaded too early.
- Update: Check compatibility with WordPress 6.8.2 and PHP 8.3.*
0.7.4
- Update: Check compatibility with WordPress 6.7.1 and PHP 8.2.*
0.7.3
- Update: Check compatibility with 6.0.0.
0.7.2
- Fix: Properly instantiate plugin default settings.
0.7.1
- Update: Check for nonce existence on settings page form.
0.7.0
- Update: Better escapes for the plugin’s settings page.
- Update: Modified textdomain as the plugin’s name.
- Add: Nonce verification for the plugin’s settings page.
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 Custom Body Class alternatives
All body plugins →FAQ
Custom Body Class: quick answers
Réponses directes, extraites des données en direct WordPress.org.
Source : WordPress.org
Is Custom Body Class free?
Yes. Custom Body Class is free to download and use from the official WordPress.org plugin directory.
Is Custom Body Class safe to use in 2026?
Custom Body Class works, but test it on a staging site before relying on it in 2026. It runs on 10K+ sites, is rated 5/5 and was last updated 1 year ago, and scores 45/100 on our health check.
How many websites use Custom Body Class?
Custom Body Class is active on 10K+ WordPress websites and has been downloaded 123,880 times since it launched in July 2015. It was downloaded 1,158 times in the last 30 days.
Does Custom Body Class work with WordPress 7.1?
Custom Body Class is officially tested up to WordPress 6.8.13, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
When was Custom Body Class last updated?
The latest version, 0.7.5, was released on July 27, 2025 (1 year ago).
Who makes Custom Body Class?
Custom Body Class is developed and maintained by Andrei Lupu.
What are the best alternatives to Custom Body Class?
The most popular alternatives to Custom Body Class are Head & Footer Code (100K+ installs), Header Footer Script Adder (1K+ installs) and Add URL Slugs as Body Class… (700+ 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
