C
Utilities Free WordPress.org

Custom Body Class

5.0 (21 reviews)
· 10K+ active installs · By Andrei Lupu
Active Installs
10K+
Rating
5.0 / 5
Version
v0.7.5
Last Updated
Jul 2025
Share

Plugin Review

AI-Researched

What is Custom Body Class?

Custom Body Class is a focused WordPress utility that lets you add a unique CSS class directly to the body tag of any page or post. Developed by Andrei Lupu, this plugin has been available for 11 years, making it a mature tool in the WordPress ecosystem. It currently serves 10K+ active installs and holds a perfect 5.0/5 rating from 21 reviews, with 100% 0% one-star ratings. The current version is 0.7.5, last updated on Jul 27, 2025. For site owners wondering how to add custom class to body tag in WordPress, this plugin offers a straightforward, no-fuss solution.

The plugin’s core purpose is simple: it adds a metabox in the post editor sidebar where you can input any custom class. That class then appears on the body tag of the frontend page. It is compatible with WordPress 5.2.0+ and has been tested up to version 0.7.5, ensuring broad site compatibility.

Key Features of Custom Body Class

  • Per-Page Metabox: A dedicated metabox appears in the right sidebar of the edit screen, letting you add a custom body class to any post or page without touching theme files.
  • Responsiveness Toggle: You can add a class that appears only on mobile devices by prefixing it with mobile-. For example, mobile-car applies the class car solely on mobile views.
  • Simple CSS Targeting: Use the added class for fine-grained styling, enabling you to alter layout, colors, or visibility for individual pages without complex selectors.
  • Lightweight Footprint: The plugin adds minimal overhead, making it suitable for performance-conscious sites that need a custom body class wordpress plugin without bloat.
  • No Configuration Required: Activate the plugin and start using the metabox immediately. There are no settings pages or dashboards to navigate.
  • Direct Demo Access: A TasteWP demo instance is provided by the developer, allowing you to test the plugin in a live WordPress environment before installing.
  • Free and Open Support: The developer offers multiple support channels including GitHub Sponsors, Ko-fi, and Twitch streams for direct interaction.

Who Should Use Custom Body Class?

This plugin is ideal for WordPress users who need to add class to body wordpress for targeted styling but lack coding experience. Beginners can use the metabox to add custom CSS classes without editing template files or writing PHP. Advanced users will appreciate the mobile-responsive prefix feature, which simplifies responsive design tweaks. With 10K+ active installs, it serves a broad audience from hobby bloggers to agency developers.

The tool is best suited for sites that require page-specific styling—such as landing pages, portfolio items, or blog posts with unique layouts. It is not a page builder or CSS framework; it is a precision tool for adding one or more classes to the body tag. If you have ever searched for add custom css class to body tag wordpress or wondered how to add custom class to body tag in wordpress, this plugin directly addresses that need. The 100% five-star rating from 21 reviewers indicates high satisfaction among its niche user base.

Installation & Setup

Installation is beginner-friendly. You can install Custom Body Class directly from the WordPress plugin directory or upload the files to your /wp-content/plugins/ folder. After activation, navigate to any post or page editor and locate the Custom Body Class metabox in the right sidebar. No additional configuration is needed—just type your desired class name and update the post.

Support & Community

Support data for the last two months shows 1 open thread and 0 resolved threads, resulting in a 0% resolution rate. This low support volume likely reflects the plugin’s simplicity—most users find it works without issues. The perfect 5.0/5 rating from 21 reviews, with 100% 0% one-star ratings, suggests that users rarely encounter problems. The developer, Andrei Lupu, offers alternative support avenues via GitHub Sponsors, Ko-fi, and Twitch streams, providing direct access for those who need help.

Pros & Cons

What's Good
  • With 10K+ active installs and a 5.0 rating from 21 ratings (100% 5-star), it is highly trusted by its user base.
  • The plugin allows adding unique CSS classes to any page or post, giving precise control over styling without editing theme files.
  • It supports responsive design by letting you prefix a class with 'mobile-' to apply it only on mobile devices, as demonstrated in the plugin demo.
  • The plugin is free and lightweight, with only 1 support thread ever created, suggesting it works reliably out of the box for most users.
  • It offers a quick demo via TasteWP, enabling users to test its functionality before installing on their own site.
Drawbacks
  • The plugin has a 0% support thread resolution rate, meaning the single reported issue was never addressed.
  • It lacks any advanced features like conditional logic for user roles, post types, or custom taxonomies, limiting its use to basic manual class assignment.
  • The plugin does not provide a settings page or bulk-editing interface, requiring users to add classes individually per post or page.
  • There is no built-in documentation or changelog beyond the short description, which may confuse users unfamiliar with CSS class naming conventions.

Technical Details

Requires WordPress
5.2.0+
Tested up to WP
6.8.5
First Released
2015 (11+ years)
Support (last 2 months)
1 threads  —  0% resolved

Feature Tags

body class css custom

Frequently Asked Questions