Custom Body Class
A plain simple plugin which allows you to add a custom CSS class the HTML body tag.
Mit Vorsicht verwenden
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.
- Bewährt im Maßstab auf 10k + aktiven Standorten
- Von Benutzern geliebt — 5/5 aus 21 Bewertungen
- Kein Update in über einem Jahr
- Nur getestet bis WordPress 6.8 (letzt ist 7.1)
Wie stapelt es sich?
Side-by-side bei Installationen, Updates, Bewertungen und SupportTägliche Downloads
Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.
Ranglisten
Where Custom Body Class stands todayWordPress.org Ranglisten suchen
Live-Position in der Plugin-Suche, Top 100| Stichwort | Position |
|---|---|
| body | #2 |
| css | >100 |
| custom | >100 |
Versionsübernahme
Anteil aktiver Sites pro Release.
Bewertungsaufschlüsselung
★★★★★★★★★★ 5 from 21 reviews
About Custom Body Class
From the official readme · v0.7.5Beschreibung
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.
Änderungsprotokoll
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.
Für Entwickler
Ist das dein Plugin? Zeigen Sie die Zahlen.
Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.
Best Custom Body Class alternatives
All body plugins →Fragen und Antworten
Custom Body Class: quick answers
Gerade Antworten, gezogen von Live WordPress.org Daten.
Quelle: 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 124,048 times since it launched in July 2015. It was downloaded 1,122 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).
Angetrieben von PageForge
Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.
PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.
- CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
- seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
- Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
- Kostenlos auf WordPress.org, keine Kreditkarte
