Allows users to create custom classes on a per-post/term basis.
As of April 2026, Custom Classes is a WordPress classes plugin with 2.0K+ active installations and a 5/5 rating from 11 reviews. It has been downloaded 27K+ times in total. Requires WordPress 4.8+ and PHP 5.3+. Available on WordPress.org since 2012. Last updated 8 years ago — may have compatibility concerns. Downloads are up 9% this week. Top alternative: Widget CSS Classes.
The Custom Classes plugin allows you to create custom classes for posts (when post_class() is called) and for the <body> class (when body_class() is called). It creates a meta box on the edit post and edit term screens in the admin with input boxes for adding your custom classes.
Custom post classes are added whenever your theme calls the post_class() function, which is generally whenever a post is shown. Custom body classes are added on the single view of the post whenever your theme calls the body_class() function.
Please consider helping the cause by:
If you need professional plugin support from me, the plugin author, you can access the support forums at Theme Hybrid, which is…
This is really a nice plugin. It makes any theme more flexible.
If all you need is to add custom classes to body on a per page / post basis, this plugin is all you need.
Just what I need – works perfectly running WP version 4.3.1 without any issues at all.
Thanks for a great solution Justin
As the other reviewer, could do with an update to tell users it is still ok to use today.
PLugin works perfectly – could use a quick update just so it doesn’t show the ‘not updated for more than 2 years’ warning.
Love this. It made it possible for me to add image titles to selected galleries only.
| WordPress | 4.8+ requiredTested up to 4.8.28 |
| PHP | 5.3+ required |
The change log is located in the changelog.md file in the plugin folder. You may also view the change log online.
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.