PluginSift
PluginsThemesCompare
Directory
  • Plugins
  • Themes
  • Compare Plugins
Plugin Comparisons
  • SEO
  • Security
  • Ecommerce
  • Page Builders
  • Caching
  • Backup
  • Forms
  • Analytics
Resources
  • About
  • Contact
  • llms.txt

© 2026 PluginSift. Data sourced from WordPress.org. · [email protected]

  1. Home
  2. Plugins
  3. CSS
  4. Custom Body Class
Custom Body Class icon

Custom Body Class

A plain simple plugin which allows you to add a custom CSS class the HTML body tag.

By Andrei Lupu·CSS·Free
5(21 reviews)
·10K+ active installs·Updated 8 months ago
DownloadVisit HomepageCompare

As of April 2026, Custom Body Class is a WordPress css plugin with 10K+ active installations and a 5/5 rating from 21 reviews. It has been downloaded 117K+ times in total. Requires WordPress 5.2.0+ and PHP false+. Available on WordPress.org since 2015. Downloads are up 18% this week. Top alternative: WPCode – Insert Headers and Footers +….

5/521 reviews
10K+active installs
117K+total downloads
11 yearssince 2015

Overview

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.
Read full description on WordPress.org

Ratings & Reviews

521 reviews
5 ★
21
4 ★
0
3 ★
0
2 ★
0
1 ★
0

Recent Reviews

Useful plugin
by bzle·7 months ago

Very handy to have a field for adding classes to a page

Fabulously useful plugin
by Anonymous User 652281·3 years ago

Exactly what I needed. Work perfectly. Thanks for making this.

Works like a charm
by mreall·5 years ago

Tested successfully on WordPress 5.6. Made it a lot easier to manage css for similar pages.

Great
by wzshop·5 years ago

Just what I needed

Nice
by cvladan·6 years ago

You should be able to enter any valid class-name, including characters like % (percentage) etc. They are useful for some purposes.

  • This topic was modified 6 years, 2 months ago by cvladan.

Download Trends

Today: 32Yesterday: 64This week: 226Period total: 19K

Compatibility

WordPress5.2.0+ requiredTested up to 6.8.5
PHPfalse+ required

Version Adoption

v0.7
96.9%
Other
3.1%

Top Alternatives to Custom Body Class

WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager icon
WPCode – Insert Headers and Footers +…
4.93.0M+ installsUpdated 2 weeks ago
ViewCompare
Code Snippets icon
Code Snippets
4.71.0M+ installsUpdated 1 month ago
ViewCompare
Simple Custom CSS Plugin icon
Simple Custom CSS Plugin
4.7100K+ installsUpdated 1 year ago
ViewCompare
Widget CSS Classes icon
Widget CSS Classes
4.990K+ installsUpdated 1 year ago
ViewCompare
Simple CSS icon
Simple CSS
4.980K+ installsUpdated 6 months ago
ViewCompare
View all css plugins →

Frequently Asked Questions

Changelog

0.7.5

  • Fix: Fixed a notice about textdomain loaded too early.
  • Update: Check compatibility with WordPress 6.8.2 and PHP 8.3.*
View full changelog on WordPress.org

Contributors

Andrei LupuAndrei Lupu
Plugin Info
Version
0.7.5
Last Updated
Jul 27, 2025
WP Requires
5.2.0+
Tested Up To
6.8.5
PHP Requires
false+
Active Installs
10K+
Downloads
117K+
Added
Jul 26, 2015
Business
Free

Tags

cssbodyclasscustom

Developer

A
Andrei Lupu
1 plugins0.0M+ total installs
View all plugins →

Quick Compare

Custom Body Class vs WPCode – Insert Headers and Footers +…→Custom Body Class vs Code Snippets→Custom Body Class vs Simple Custom CSS Plugin→

Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.