Custom Body Class
View on WordPress.orgScores higher than 16% of indexed plugins
About
A plain simple plugin which allows you to add a custom CSS class the HTML body tag.
Security History
What It Does
Custom Body Class adds a field to the WordPress editor where you can type a custom CSS class that gets applied to the <body> tag of that specific page or post. The class is output on the front end, letting you target individual pages with custom CSS through your theme or a child theme stylesheet. It does not include any styling of its own; it is purely a hook for your own CSS rules.
Who It's For
This plugin is best for WordPress developers, designers, and theme customizers who want a quick way to add per-page CSS hooks without editing template files or writing a custom function. It suits small business sites, agency client builds, and portfolio sites where a handful of pages need unique styling rules.
Who Should Skip It
If you only need to add a few CSS rules globally or do not already work with CSS, a child theme stylesheet or the Customizer's Additional CSS field will get you further. Anyone looking for a full CSS management toolkit should also skip this and use something like WPCode.
The Bottom Line
Custom Body Class does one small job and does it cleanly, earning an overall score of 68.83 out of 100. It is a reasonable choice for developers who want a focused per-page CSS hook without plugin bloat, but the unresolved support history and tiny install base mean you should not depend on it for complex builds. For most site owners, WPCode or a child theme will cover the same ground with more flexibility.
Related Plugins
Pick WPCode if you want a full code snippet manager with conditional logic, since it can do far more than a single body class field.
Choose Code Snippets if you prefer to inject PHP or CSS via reusable snippets rather than a single body class UI field.
Pick White Label CMS only if your primary goal is branding the admin and you also happen to need per-page body hooks.
Choose Head & Footer Code if your real need is injecting CSS sitewide into the head or footer, not targeting individual pages.
Pick Blocks Animation only if you specifically need CSS animations on Gutenberg blocks, which is unrelated to body class targeting.