Discover, trust, install: FAIR 1.0 is here

Plugin Banner

Custom Body Class

by Andrei Lupu

Version: 0.7.5

Download
Description

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

Demo

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

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
  • Watch me coding on twitch.tv/thelup
  • Or simply visit my site 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.

Fabulously useful plugin

By Anonymous User 652281 (anonymized_652281) on November 21, 2022

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

Works like a charm

By mreall on January 19, 2021

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

Great

By wzshop on April 24, 2020

Just what I needed

Nice

By cvladan on January 28, 2020

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

Essential

By yodastudio on June 22, 2019

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

Awesome!

By Clayton Chase (claytonchase) on May 1, 2019

This plugin works just as I would expect. Great options without making it too complex. Thank you!

Great and very handy

By Damiaan van Vliet (damnsharp) on March 13, 2019

Perfect that you've created this plug-in. I use to have another plug-in (slug as body class) but this plug-in is nicely updated. Thanks!

Love this plugin. Great work.

By ostii on March 4, 2019

Thank you. This is so useful.

Great!

By attilioprimo on April 24, 2018

So simple, so genius!

Already using it on my most recent projects, very powerful!

By mastiyok on March 20, 2018

love how it simply add class to post and pages!

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
  • Version:Version: 0.7.5
  • Active installs:Active installs: 10K
  • Last updated:Last updated: 2 months ago
  • Requires:Requires: 5.2.0
  • Tested:Tested: 6.8.2
Average rating:5 out of 5 stars.
  • Number of ratings: 20 ratings
  • Number of ratings: 0 ratings
  • Number of ratings: 0 ratings
  • Number of ratings: 0 ratings
  • Number of ratings: 0 ratings
Back to top