Title: Custom Classes
Author: Justin Tadlock
Published: <strong>Èrèlé  6, 2012</strong>
Last modified: Ọwẹ́wẹ̀  27, 2017

---

Ṣàwárí àwọn plugin

![](https://ps.w.org/custom-classes/assets/banner-772x250.png?rev=1737208)

Plugin yìí **kò tíì ṣe àyẹ̀wò pẹ̀lú àwọn ìtújáde mẹ́ta pàtàkì tó kẹ́yìn ti WordPress**.
Ó lè jẹ́ pé a kò tọ́jú tàbí ṣe àtìlẹ́yìn fún un mọ́, ó sì lè ní àwọn ọ̀ràn ìbámu
nígbà tí a bá lò ó pẹ̀lú àwọn ẹ̀yà WordPress tuntun.

![](https://ps.w.org/custom-classes/assets/icon-256x256.png?rev=1737208)

# Custom Classes

 Láti ọwọ́ [Justin Tadlock](https://profiles.wordpress.org/greenshady/)

[Ṣe ìgbàsílẹ̀](https://downloads.wordpress.org/plugin/custom-classes.1.0.0.zip)

 * [Àwọn àlàyé](https://yor.wordpress.org/plugins/custom-classes/#description)
 * [Àwọn àgbéyẹ̀wò](https://yor.wordpress.org/plugins/custom-classes/#reviews)
 * [Ìdàgbàsókè](https://yor.wordpress.org/plugins/custom-classes/#developers)

 [Ìrànlọ́wọ́](https://wordpress.org/support/plugin/custom-classes/)

## Àpèjúwe

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:

 * [Making a donation](https://themehybrid.com/donate).
 * [Signing up at my site](https://themehybrid.com/club).
 * [Rating the plugin](https://wordpress.org/support/view/plugin-reviews/custom-classes?rate=5#postform).

### Professional Support

If you need professional plugin support from me, the plugin author, you can access
the support forums at [Theme Hybrid](https://themehybrid.com/board/topics), 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Ìtumọ̀ Yorùbá: ’re a theme author, plugin author, or just a code hobbyist,
you can follow the development of this plugin on itÌtumọ̀ Yorùbá: ’s [GitHub repository](https://github.com/justintadlock/custom-classes).

### Will this work with custom post types?

Certainly. This plugin works with any public post type on your site. ItÌtumọ̀ Yorùbá:’
s not just limited to the “post” post type.

### ItÌtumọ̀ Yorùbá: ’s not working!

Most likely, this means your theme isnÌtumọ̀ Yorùbá: ’t using the appropriate functions(`
post_class()` and `body_class()`). YouÌtumọ̀ Yorùbá: ’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](https://themehybrid.com/themes)!

## Àwọn àwòrán ìbòjú

[⌊Custom classes meta box⌉⌊Custom classes meta box⌉[

Custom classes meta box

[⌊Body class output in source code⌉⌊Body class output in source code⌉[

Body class output in source code

## FAQ

  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Ìtumọ̀
Yorùbá: ’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Ìtumọ̀ Yorùbá: ’s `
style.css` file for anything to actually change on the front end. This plugin just
outputs the classes for you. ItÌtumọ̀ Yorùbá: ’s up to you to decide how to use 
them.

## Àwọn àgbéyẹ̀wò

![](https://secure.gravatar.com/avatar/1e8a5ddfe2aa731dc342bf2f48876f3f02f5dbb1e71762d529fb6c7b32ac78d9?
s=60&d=retro&r=g)

### 󠀁[Simply great](https://wordpress.org/support/topic/simply-great-146/)󠁿

 [tastymouse](https://profiles.wordpress.org/tastymouse/) Ṣẹrẹ 15, 2018

This is really a nice plugin. It makes any theme more flexible.

![](https://secure.gravatar.com/avatar/0f1f2b664e0ccb01f0ed6fb73a5cfe814242bfc47e1eb97837234ea1fd115897?
s=60&d=retro&r=g)

### 󠀁[Works nicely!](https://wordpress.org/support/topic/works-nicely-86/)󠁿

 [Shivanand Sharma](https://profiles.wordpress.org/varun21/) Ọwẹ́wẹ̀ 27, 2017

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

![](https://secure.gravatar.com/avatar/c7c585b9d00b0b051cf80058faa515a54e4c79b0bd91239dba0199729e1f51e6?
s=60&d=retro&r=g)

### 󠀁[Perfect](https://wordpress.org/support/topic/perfect-2429/)󠁿

 [innuvo](https://profiles.wordpress.org/innuvo/) Ọwẹ́wẹ̀ 3, 2016

Just what I need Ìtumọ̀ Yorùbá: – 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.

 [ Ka gbogbo àwọn àgbéyẹ̀wò 11 ](https://wordpress.org/support/plugin/custom-classes/reviews/)

## Àwọn Olùkópa & Olùgbéejáde

“Custom Classes” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa
sí plugin yìí.

Àwọn Olùkópa

 *   [ Justin Tadlock ](https://profiles.wordpress.org/greenshady/)

A ti túmọ̀ “Custom Classes” sí èdè agbègbè 1 kan. Ọpẹ́lọpẹ́ fún [àwọn atúmọ̀ èdè](https://translate.wordpress.org/projects/wp-plugins/custom-classes/contributors)
fún àwọn ìkópa wọn.

[Túmọ̀ “Custom Classes” sí èdè rẹ.](https://translate.wordpress.org/projects/wp-plugins/custom-classes)

### Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

[Ṣàwárí koodu](https://plugins.trac.wordpress.org/browser/custom-classes/), ṣàyẹ̀wò
[ibi ìpamọ́ SVN](https://plugins.svn.wordpress.org/custom-classes/), tàbí ṣe àgbékalẹ̀
sí [àkọsílẹ̀ ìdàgbàsókè](https://plugins.trac.wordpress.org/log/custom-classes/)
nípasẹ̀ [RSS](https://plugins.trac.wordpress.org/log/custom-classes/?limit=100&mode=stop_on_copy&format=rss).

## Àkọsílẹ̀ àwọn àyípadà

The change log is located in the `changelog.md` file in the plugin folder. You may
also [view the change log](https://github.com/justintadlock/custom-classes/blob/master/changelog.md)
online.

## Àkójọpọ̀ Meta

 *  Ẹ̀yà **1.0.0**
 *  Ìgbàgbọ́hùn tó kẹ́yìn **ọdún 9 sẹ́yìn**
 *  Àwọn ìgbéwọlẹ̀ tó ṣiṣẹ́ **2,000+**
 *  Ẹ̀yà WordPress ** 4.8 tàbí ju bẹ́ẹ̀ lọ **
 *  Dánwò dé **4.8.28**
 *  Ẹ̀yà PHP ** 5.3 tàbí ju bẹ́ẹ̀ lọ **
 *  Àwọn èdè
 * [English (US)](https://wordpress.org/plugins/custom-classes/) àti [German](https://de.wordpress.org/plugins/custom-classes/).
 *  [Túmọ̀ sí èdè rẹ](https://translate.wordpress.org/projects/wp-plugins/custom-classes)
 * Àmì
 * [classes](https://yor.wordpress.org/plugins/tags/classes/)
 *  [Ìwòye Tó Péye](https://yor.wordpress.org/plugins/custom-classes/advanced/)

## Àwọn ìbò

 5 lára àwọn ìràwọ̀ 5.

 *  [  11 5-star reviews     ](https://wordpress.org/support/plugin/custom-classes/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/custom-classes/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/custom-classes/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/custom-classes/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/custom-classes/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/custom-classes/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/custom-classes/reviews/)

## Àwọn Olùkópa

 *   [ Justin Tadlock ](https://profiles.wordpress.org/greenshady/)

## Ìrànlọ́wọ́

Nǹkan wà tí o fẹ́ sọ? Ṣé o nílò ìrànlọ́wọ́?

 [Wo àpéjọ ìrànlọ́wọ́](https://wordpress.org/support/plugin/custom-classes/)

## Ṣe ìtọrẹ

Ṣé o fẹ́ ṣe àtìlẹ́yìn fún ìlọsíwájú plugin yìí?

 [ Ṣe ìtọrẹ sí plugin yìí ](https://themehybrid.com/donate)