Custom Body Class
Plugin Review
AI-ResearchedWhat 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-carapplies the classcarsolely 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
- 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.
- 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
Frequently Asked Questions
Yes, Custom Body Class is completely free and available on WordPress.org. It was first released in 2015 and is actively maintained by Andrei Lupu.
Custom Body Class has over 10K+ active installs and holds a perfect 5.0/5 rating from 21 reviews. This makes it a trusted choice for adding custom CSS classes to your content.
The plugin requires WordPress 5.2.0 or higher and has been tested up to WordPress 6.8.5. You can safely use it on most modern WordPress installations.
Yes, the plugin was last updated on Jul 27, 2025 and is currently at version 0.7.5. The author, Andrei Lupu, provides ongoing support and development.
The plugin facts do not specify a minimum PHP version requirement. However, since it requires WordPress 5.2.0+, it works with any PHP version supported by that WordPress release.
Support is available through the WordPress.org forums, though in the last 2 months there was 1 support thread with 0 resolved (0%). The author also offers alternative support channels like GitHub Sponsors, Ko-fi, and Twitch.
Yes, beginners can easily use it — you simply type a CSS class name when editing a page or post, and the plugin adds it to the body tag. The mobile-responsive feature is also straightforward: just add 'mobile-' before your class name.
The main feature is adding unique CSS classes to individual pages or posts for custom styling. It also includes a mobile-responsive option where adding 'mobile-' before a class name makes it apply only on mobile devices.