Plugin info

Total downloads: 26,841
Active installs: 2,000
Total reviews: 11
Average rating: 5
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 2 language(s)
Contributors: 2
Last updated: 11/28/2017 (2955 days ago)
Added to WordPress: 2/6/2012 (13 years old)
Minimum WordPress version: 4.8
Tested up to WordPress version: 4.8.27
Minimum PHP version: 5.3

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 2955 days ago • 11 reviews

24/100

Is Custom Classes abandoned?

Possibly abandoned (last update 2955 days ago).

Compatibility

Requires WordPress: 4.8
Tested up to: 4.8.27
Requires PHP: 5.3

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Widget CSS Classes
Rating 4.9/5 (74 reviews)Active installs 90,000
Widget Classes
Rating 5.0/5 (1 reviews)Active installs 1,000
Custom Menu Class
Rating 2.9/5 (7 reviews)Active installs 300
Ambrosite Body Class Enhanced
Rating 5.0/5 (5 reviews)Active installs 300
WP Widget CSS Classes
Rating 5.0/5 (4 reviews)Active installs 300
MB Spirit for MINDBODY
Rating 5.0/5 (3 reviews)Active installs 100

Description

The Custom Classes plugin allows you to create custom classes for posts (when post_class() is called) and for the 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.

Like this plugin?

Please consider helping the cause by:

Professional Support

If you need professional plugin support from me, the plugin author, you can access the support forums at Theme Hybrid, which is a professional WordPress help/support site where I handle support for all my plugins and themes for a community of 75,000+ users (and growing).

Plugin Development

If you’re a theme author, plugin author, or just a code hobbyist, you can follow the development of this plugin on it’s GitHub repository.

Will this work with custom post types?

Certainly. This plugin works with any public post type on your site. It’s not just limited to the “post” post type.

It’s not working!

Most likely, this means your theme isn’t using the appropriate functions (post_class() and body_class()). You’ll need to talk to your theme author to get them to fix this. Or, better yet, use a correctly-coded theme from Theme Hybrid!

Installation

No installation instructions available

Frequently Asked Questions

Why was this plugin created?

I wanted a quick and easy way to add styles to my posts without having to make a tag, create a category, or use post formats. Those solutions are great, but they’re not ideal for every situation. By using a custom class, I have complete control over post styles.

How do I use it?

A meta box named “Classes” gets added to the edit post screen in the admin. From there, you can input a custom post and/or body class for individual posts. On the edit/new term (category, tag, etc.) screen, a new field labeled “Body Class” is also available.

Of course, you actually have to style the class in your theme’s style.css file for anything to actually change on the front end. This plugin just outputs the classes for you. It’s up to you to decide how to use them.

Review feed

Shivanand Sharma
9/27/2017

Works nicely!

If all you need is to add custom classes to body on a per page / post basis, this plugin is all you need.

Screenshots

  1. Custom classes meta box

    Custom classes meta box

  2. Body class output in source code

    Body class output in source code

Changelog

The change log is located in the changelog.md file in the plugin folder. You may also view the change log online.