Title: Custom Body Class
Author: Andrei Lupu
Published: <strong>26.07.2015</strong>
Last modified: 27.07.2025

---

Поиск плагинов

Этот плагин **не тестировался с последними 3 основными выпусками WordPress**. Скорее
всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

![](https://s.w.org/plugins/geopattern-icon/wp-custom-body-class.svg)

# Custom Body Class

 Автор: [Andrei Lupu](https://profiles.wordpress.org/euthelup/)

[Скачать](https://downloads.wordpress.org/plugin/wp-custom-body-class.0.7.5.zip)

 * [Детали](https://ru.wordpress.org/plugins/wp-custom-body-class/#description)
 * [Отзывы](https://ru.wordpress.org/plugins/wp-custom-body-class/#reviews)
 *  [Установка](https://ru.wordpress.org/plugins/wp-custom-body-class/#installation)
 * [Разработка](https://ru.wordpress.org/plugins/wp-custom-body-class/#developers)

 [Поддержка](https://wordpress.org/support/plugin/wp-custom-body-class/)

## Описание

You can use this plugin to add a unique CSS class to your pages or posts.

#### Demo

[TasteWP](https://tastewp.com/) has prepared a quick WordPress instance with this
plugin, so you can give it a try [in this demo](https://demo.tastewp.com/wp-custom-body-class)

#### Responsiveness

There’s a way to add a class to appear only on mobile devices. You can do that by
simply adding `mobile-` on the front of
 the class. For example, if you want to 
have the class «car» for mobile side, you need to use «mobile-car».

#### Support me

If you find this plugin helpful, or you just want to send me a coffee here are the
ways:

 * Use the Github Sponsor button
 * [Ko-fi](https://ko-fi.com/thelup)
 * Watch me coding on [twitch.tv/thelup](https://www.twitch.tv/thelup/)
 * Or simply visit my site [lup.dev](https://a.lup.dev/) and make those analytics
   ring the bells.

## Установка

 1. Install Custom Body Class either via the WordPress.org plugin directory, or by 
    uploading the files to your `/wp-content/plugins/` directory
 2. After activating Custom Body Class go to any edit page and see the Custom Body 
    Class metabox in the right sidebar.

## Отзывы

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

### 󠀁[Useful plugin](https://wordpress.org/support/topic/useful-plugin-1102/)󠁿

 [bzle](https://profiles.wordpress.org/bzle/) 08.08.2025

Very handy to have a field for adding classes to a page

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

### 󠀁[Fabulously useful plugin](https://wordpress.org/support/topic/fabulously-useful-plugin/)󠁿

 [Anonymous User 652281](https://profiles.wordpress.org/anonymized-652281/) 21.11.2022

Exactly what I needed. Work perfectly. Thanks for making this.

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

### 󠀁[Works like a charm](https://wordpress.org/support/topic/works-like-a-charm-1856/)󠁿

 [mreall](https://profiles.wordpress.org/mreall/) 19.01.2021

Tested successfully on WordPress 5.6. Made it a lot easier to manage css for similar
pages.

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

### 󠀁[Great](https://wordpress.org/support/topic/great-11259/)󠁿

 [wzshop](https://profiles.wordpress.org/wzshop/) 24.04.2020

Just what I needed

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

### 󠀁[Nice](https://wordpress.org/support/topic/nice-3247/)󠁿

 [cvladan](https://profiles.wordpress.org/cvladan/) 28.01.2020

You should be able to enter any valid class-name, including characters like % (percentage)
etc. They are useful for some purposes.

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

### 󠀁[Essential](https://wordpress.org/support/topic/essential-225/)󠁿

 [yodastudio](https://profiles.wordpress.org/yodastudio/) 22.06.2019

Very useful and easy to use plugin, it helps a lot in page customization. And it
works with multisite too. Thanks.

 [ Посмотреть 21 отзыв ](https://wordpress.org/support/plugin/wp-custom-body-class/reviews/)

## Участники и разработчики

«Custom Body Class» — проект с открытым исходным кодом. В развитие плагина внесли
свой вклад следующие участники:

Участники

 *   [ Andrei Lupu ](https://profiles.wordpress.org/euthelup/)

«Custom Body Class» переведён на 2 языка. Благодарим [переводчиков](https://translate.wordpress.org/projects/wp-plugins/wp-custom-body-class/contributors)
за их работу.

[Перевести «Custom Body Class» на ваш язык.](https://translate.wordpress.org/projects/wp-plugins/wp-custom-body-class)

### Заинтересованы в разработке?

[Посмотрите код](https://plugins.trac.wordpress.org/browser/wp-custom-body-class/),
проверьте [SVN репозиторий](https://plugins.svn.wordpress.org/wp-custom-body-class/),
или подпишитесь на [журнал разработки](https://plugins.trac.wordpress.org/log/wp-custom-body-class/)
по [RSS](https://plugins.trac.wordpress.org/log/wp-custom-body-class/?limit=100&mode=stop_on_copy&format=rss).

## Журнал изменений

#### 0.7.5

 * Fix: Fixed a notice about textdomain loaded too early.
 * Update: Check compatibility with WordPress 6.8.2 and PHP 8.3.*

#### 0.7.4

 * Update: Check compatibility with WordPress 6.7.1 and PHP 8.2.*

#### 0.7.3

 * Update: Check compatibility with 6.0.0.

#### 0.7.2

 * Fix: Properly instantiate plugin default settings.

#### 0.7.1

 * Update: Check for nonce existence on settings page form.

#### 0.7.0

 * Update: Better escapes for the plugin’s settings page.
 * Update: Modified textdomain as the plugin’s name.
 * Add: Nonce verification for the plugin’s settings page.

#### 0.6.0

 * Fix: Now the metabox will load even if the Autocomplete feature is off.
 * Add: The capability to restrict the metabox for Administrators only.

#### 0.5.0

 * Add an option for a global class

#### 0.4.0

 * Add support for classes on mobile devices

#### 0.3.0

 * Add a tag selector with autocomplete for all post types

#### 0.0.3

 * Quick archives fix

#### 0.0.2

 * Small fixes, and typos

#### 0.0.1

 * We are on

## Мета

 *  Версия **0.7.5**
 *  Обновление: **1 год назад**
 *  Активных установок: **10 000+**
 *  Версия WordPress ** 5.2.0 или выше **
 *  Совместим вплоть до: **6.8.12**
 *  Языки
 * [Dutch](https://nl.wordpress.org/plugins/wp-custom-body-class/), [English (US)](https://wordpress.org/plugins/wp-custom-body-class/)
   и [German](https://de.wordpress.org/plugins/wp-custom-body-class/).
 *  [Перевести на ваш язык](https://translate.wordpress.org/projects/wp-plugins/wp-custom-body-class)
 * Метки:
 * [body](https://ru.wordpress.org/plugins/tags/body/)[css](https://ru.wordpress.org/plugins/tags/css/)
   [custom](https://ru.wordpress.org/plugins/tags/custom/)
 *  [Дополнительно](https://ru.wordpress.org/plugins/wp-custom-body-class/advanced/)

## Оценки

 5 из 5 звёзд.

 *  [  21 5-звездный отзыв     ](https://wordpress.org/support/plugin/wp-custom-body-class/reviews/?filter=5)
 *  [  0 4-звездный отзыв     ](https://wordpress.org/support/plugin/wp-custom-body-class/reviews/?filter=4)
 *  [  0 3-звездный отзыв     ](https://wordpress.org/support/plugin/wp-custom-body-class/reviews/?filter=3)
 *  [  0 2-звездный отзыв     ](https://wordpress.org/support/plugin/wp-custom-body-class/reviews/?filter=2)
 *  [  0 1-звездный отзыв     ](https://wordpress.org/support/plugin/wp-custom-body-class/reviews/?filter=1)

[Ваш отзыв](https://wordpress.org/support/plugin/wp-custom-body-class/reviews/#new-post)

[Посмотреть всеотзывы](https://wordpress.org/support/plugin/wp-custom-body-class/reviews/)

## Участники

 *   [ Andrei Lupu ](https://profiles.wordpress.org/euthelup/)

## Поддержка

Решено проблем за последние 2 месяца:

     0 из 1

 [Перейти в форум поддержки](https://wordpress.org/support/plugin/wp-custom-body-class/)