WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Justin Tadlock v1.0.0

Custom Classes

Allows users to create custom classes on a per-post/term basis.

Custom Classes

The facts

Rating
5★ from 11
Active installs
2k+
Price
Free
Last updated
28 Nov 2017
Added
Feb 2012
Requires WP
4.8
Tested up to
WP 4.8.30
Requires PHP
5.3
Downloads
27,738

Our analysis

AI-assisted

Custom Classes is a WordPress plugin that enables you to add custom classes to posts and the body element of your site. It provides a meta box on the edit post and term screens in the admin area, allowing you to input your desired classes. These classes are applied when your theme calls the relevant functions for displaying posts and body elements.

This plugin is suitable for users who want to enhance the styling of their posts and pages by adding specific classes. It works with any public post type, making it versatile for various types of content on your site.

Best for: This plugin is best for WordPress users looking to customise post and body classes for styling purposes.

What it does well

  • Allows custom classes for posts and body elements
  • Includes a meta box for easy input in the admin area
  • Compatible with any public post type

Where it falls short

  • Requires themes to use post_class() and body_class() functions
  • Last updated in November 2017, which may affect compatibility with newer WordPress versions

Verdict

Custom Classes provides a straightforward way to add custom classes to your posts. However, its reliance on theme compatibility may limit its effectiveness for some users.

From the developer

Justin Tadlock's own description of Custom Classes, lightly tidied.

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.

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!

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for bookstores and publishers.

GetGenie

AI powered SEO assistant &amp; content writer with 40+ templates, chatbot, NLP keyword research, AEO, GEO, SEO...

Free 80k+ installs 4.8★ (118)
List category posts

Very customizable plugin to list posts by category (or tag, author and more) in a post, page or widget. Uses t...

Free 80k+ installs 4.7★ (254)
Real Testimonials

A Customizable Testimonial plugin to Automate Collecting, Filtering, and Publishing Customer Reviews. Testimon...

Free 40k+ installs 4.7★ (226)
One Click Demo Import

Import your demo content, widgets and theme settings with one click. Theme authors! Enable simple theme demo i...

Free 1M+ installs 4.3★ (79)