Plugin info

Total downloads: 114,467
Active installs: 10,000
Total reviews: 21
Average rating: 5
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 2
Last updated: 7/27/2025 (155 days ago)
Added to WordPress: 7/26/2015 (10 years old)
Minimum WordPress version: 5.2.0
Tested up to WordPress version: 6.8.3
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Maintained • Last updated 155 days ago • 21 reviews

54/100

Is Custom Body Class abandoned?

Likely maintained (last update 155 days ago).

Compatibility

Requires WordPress: 5.2.0
Tested up to: 6.8.3
Requires PHP: f

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Add Custom Body Class
Rating 5.0/5 (8 reviews)Active installs 1,000
OS Adder
Rating 0.0/5 (0 reviews)Active installs 10
Add URL Slugs as Body Classes
Rating 4.8/5 (5 reviews)Active installs 800
Slug as body class
Rating 5.0/5 (6 reviews)Active installs 100
LH Add Roles to Body Class
Rating 5.0/5 (1 reviews)Active installs 30
Add Custom Post Type Slugs to Admin Body Class
Rating 5.0/5 (1 reviews)Active installs 10

Description

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

  1. Install Custom Body Class either via the WordPress.org plugin directory, or by uploading the files to your /wp-content/plugins/ directory
  2. After activating Custom Body Class go to any edit page and see the Custom Body Class metabox in the right sidebar.

Frequently Asked Questions

No FAQ available

Review feed

No reviews available

Screenshots

No screenshots available

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.*

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.

0.6.0

  • Fix: Now the metabox will load even if the Autocomplete feature is off.
  • Add: The capability to restrict the metabox for Administrators only.

0.5.0

  • Add an option for a global class

0.4.0

  • Add support for classes on mobile devices

0.3.0

  • Add a tag selector with autocomplete for all post types

0.0.3

  • Quick archives fix

0.0.2

  • Small fixes, and typos

0.0.1

  • We are on