WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Andrei Lupu v0.7.5

Custom Body Class

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

Custom Body Class

The facts

Rating
5★ from 21
Active installs
10k+
Price
Free
Last updated
27 Jul 2025
Added
Jul 2015
Requires WP
5.2.0
Tested up to
WP 6.8.8
Downloads
121,236

Our analysis

AI-assisted

Custom Body Class is a WordPress plugin that allows you to add unique CSS classes to your pages or posts. This can help you customise the appearance of your site by applying specific styles to different content. The plugin also includes a feature for adding classes that only appear on mobile devices by prefixing the class name with 'mobile-'.

This plugin is suitable for developers or site owners who want to enhance their site's styling capabilities without needing to write extensive custom code. It is particularly useful for those who require specific styles for different devices.

Best for: This plugin suits developers and site owners looking to customise their site's CSS classes easily.

What it does well

  • Allows adding unique CSS classes to pages or posts
  • Supports mobile-specific classes
  • Free to use from the WordPress.org directory
  • Positive user ratings
  • Active installation count of 10,000

Where it falls short

  • Limited feature information available
  • No advanced styling options mentioned

Verdict

Custom Body Class provides a straightforward way to manage CSS classes for WordPress content. It is a useful tool for those wanting to implement specific styles without complex coding.

From the developer

Andrei Lupu's own description of Custom Body Class, lightly tidied.

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 the full description on the official page →

Tagged as

Alternatives

Other plugins for developer tooling.

WPCode

WPCode

93

Easily add code snippets in WordPress. Insert header & footer scripts, add PHP code snippets with conditio...

Free 3M+ installs 4.9★ (1,873)
Header Footer Code Manager

Easily add tracking code snippets, conversion pixels, or other scripts required by third party services for an...

Free 600k+ installs 4.9★ (309)
Admin and Site Enhancements

Duplicate post, post order, image resize, email via SMTP, admin menu editor, custom css / code, disable gutenb...

Free 200k+ installs 5★ (421)
Shortcoder

Create custom "Shortcodes" easily for HTML, JavaScript, CSS code snippets and use the shortcodes wit...

Free 100k+ installs 4.9★ (227)
Insert PHP Code Snippet

Add PHP code to your pages and posts easily using shortcodes.

Free 90k+ installs 4.9★ (705)
Code Snippets

An easy, clean, and simple way to enhance your site with code snippets.

Free 1M+ installs 4.7★ (509)