Custom Body Class WordPress Plugin | Codefreex Skip to content
Custom Body Class icon

WordPress plugin

Custom Body Class

A plain simple plugin which allows you to add a custom CSS class the HTML body tag.

By Andrei Lupu10K+ active installs5.0 out of 5
Active installs
10K+
Rating
5.0 / 5
Version
0.7.5
Last updated
Jul 27, 2025
Tested up to
WordPress 6.8.12
Requires
WP 5.2.0

Health check

Is Custom Body Class safe to rely on?

Our reading of the public WordPress.org data: maintenance, compatibility, ratings and support.

No update in over a year

Last updated on July 27, 2025. It may not be compatible with current WordPress or PHP, and unfixed issues are a security risk.

Not yet tested with the latest WordPress

Tested up to WordPress 6.8.12. It often still works, but check on staging first.

Highly rated by users

Rated 5.0 out of 5 from 21 ratings on WordPress.org.

Rank tracker

Where Custom Body Class ranks in WordPress.org search

Its position in WordPress.org plugin search for its tags and name, refreshed weekly so you can see how its visibility changes.

WordPress.org search positions for Custom Body Class
KeywordPositionChangeTrendCurrent #1
body
css
custom
custom body class

Checked against the top 100 WordPress.org search results.

Overview

What Custom Body Class does

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

TasteWP has prepared a quick WordPress instance with this plugin, so you can give it a try in this demo

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”.

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

Use the Github Sponsor button

Watch me coding on twitch.tv/thelup

Description from the author's listing. Read the full listing on WordPress.org

FAQ

Custom Body Class: questions and answers

What is Custom Body Class?

Custom Body Class is a WordPress plugin by Andrei Lupu. A plain simple plugin which allows you to add a custom CSS class the HTML body tag.

Is Custom Body Class free?

Custom Body Class is listed in the WordPress.org plugin directory, so the version there is free to download and use. Some authors also sell paid add-ons or a premium edition with more features and support.

How many websites use Custom Body Class?

WordPress.org reports 10K+ active installations of Custom Body Class. That figure counts sites running the WordPress.org version and is rounded down by WordPress.org.

Is Custom Body Class still maintained?

Custom Body Class was last updated on July 27, 2025. The current version is 0.7.5. Check the changelog on WordPress.org and test updates on a staging site before applying them to a live site.

What does Custom Body Class require?

Custom Body Class requires WordPress 5.2.0 or newer. It has been tested up to WordPress 6.8.12.

Can Codefreex set up or customize Custom Body Class?

Yes. Codefreex installs, configures and customizes WordPress plugins including Custom Body Class, fixes conflicts and performance problems, and builds custom features when a plugin does not do exactly what you need. Send your site URL for a free review.

Free expert review

Need Custom Body Class set up, customized or fixed?

Tell us about your site and what you need this plugin to do. A senior WordPress developer replies within one business day with a plan and a quote.

Built this plugin yourself? We help WordPress product teams with development, support load and growth. Talk to us