🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Compte Get it free
Enhanced Body Class icon
Activement maintenu Testé avec WP 7.1 #1 in body class style

Enhanced Body Class

WordPress plugin to add user-related classes to body tag, allowing you to easily customize styling by role or specific user.

Installations actives<10Nouveau
Téléchargements · 30D115▲ 3,2× vs prév. 30j
Évaluation—0 avis
Score de santé64/100Bon
Téléchargements de tous les temps1.8KDepuis février 2019
Support résolu—Aucun fil de discussion récent
A besoin deWP 4.6PHP 5.6.40+
Téléchargements · 7j17▼ -78.2% week over week
Notre verdict

Choix solide

Enhanced Body Class is a solid plugin choice in 2026, with a few things worth checking first. Was last updated 2 weeks ago, and scores 64/100 on our health check.

  • Développé activement — Dernière mise à jour il y a 2 semaines
  • Testé avec le dernier WordPress (7.1)
  • Petite base d'utilisateurs (<10 installations actives)
  • Très peu de critiques jusqu'à présent

Téléchargements quotidiens

81726Sep 5Oct 19Dec 3
Hier2
Moyenne quotidienne (1 ans)1
Jour de pointe35Nov 21, 2026
12 Derniers mois438

Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.

Classements

Where Enhanced Body Class stands today

WordPress.org Classements de recherche

Position en direct dans la recherche de plugins, Top 100
Mot-cléPositionPlugins concurrentsCatégorie
body class style #33 935 Best body class style plugins →

About Enhanced Body Class

From the official readme · v1.0.9

Description

WordPress plugin to add user-related classes to the body tag. This can be enabled on the frontend and backend of the site.
The css classes allow you to easily customize styling by role or a specific user.

Traits

  • Toggle display on frontend and admin pages
  • Toggle classes for role, user name and user id
  • Template hinting to load custom theme css files for frontend and admin

Stylesheets

  • Add to theme folder (optional): enhanced-body-class-frontend.css
  • Add to theme folder (optional): enhanced-body-class-admin.css

Scripts

  • Add to theme folder (optional): enhanced-body-class-frontend.js
  • Add to theme folder (optional): enhanced-body-class-admin.js

Styles

  • .user-role-{rolename} ex: .user-role-author
  • .user-name-{username} ex: .user-name-bobdobbs
  • .user-id-{ID} ex: .user-id-1

Usage

After activating the class on the body tag, it will be up to you to use css or javascript to customize the display.

  1. Activate ‘User Role’ on ‘Admin Pages’ in plugin settings
  2. Observe classes on BODY tag by viewing the webpage source. You may need to refresh the page to see the updated class.
  3. Navigate to current theme and create file enhanced-body-class-admin.css
  4. Edit enhanced-body-class-admin.css and add the following:

    body.user-role-administrator { background-color: cyan; }

Refresh the page. You should now see a cyan background. You can now update the css to change the display of specific
page elements.

Real Usage

This plugin was developed to hide certain elements in a popular photo gallery from users with a specific role.

Create the theme file enhanced-body-class-admin.css

`

body.user-role-contributor #updategallery #gallerydiv { display: none; }
`

Create the theme file enhanced-body-class-admin.js

`

jQuery(document).ready(function($) {
$(‘body.user-role-contributor select#bulkaction option[value=”copy_to”]’).attr(‘disabled’, ‘disabled’);
});
`

About This Plugin

This plugin was created by Noah J. Stewart in response to a specific problem. In January 2019,
Noah Stewart was contacted by his father Jim Stewart regarding a WordPress photo gallery plugin
that his astronomy club was using. They were having trouble customizing a few of the role-based
options in a popular gallery plugin. Like any good graphic artist, Jim was trying to improve
the interface for the site users. The simplest approach to the problem was to use css to
selectively hide certain elements, ie. invisible content users with the author role that
should be visible to users with the administrator role.

Installation

  1. Upload the plugin files to the /wp-content/plugins/enhanced-body-class directory, or install the plugin through
    the WordPress plugins screen directly.
  2. Activez le plugin via l'écran "Plugins" dans WordPress
  3. Use the Settings->Enhanced Body Class screen to configure the plugin. You must choose either frontend or admin to see changes.
  4. Customize output by adding any of the files below based on the front or admin settings you selected.

Journal de modifications

Initial release of plugin to the WordPress community

1.0.9

  • Fixed spacing between existing and plugin-generated classes in the WordPress admin.
  • Fixed the settings screen to reflect enabled checkbox defaults and use the WordPress settings capability.
  • Escaped settings output and normalized generated username classes.
  • Used the plugin version for cache busting of theme-provided CSS and JavaScript and cleaned up WordPress coding-standard findings.

1.0.8

  • bug fix on submenu

1.0.7

  • removed underscore prefix from private function names
  • removed redundant code for registering settings

1.0.6

  • added support for javascript files
  • updated readme

1.0.5

  • added icon and banner assets
  • added copy of license

1.0.4

  • added readme.txt to plugin archive
  • updates and cleanup

Journal des modifications complet sur WordPress.org →

Captures d'écran

Testing installation
Testing installation

Pour les développeurs

Est-ce votre plugin ? Montrez les chiffres.

Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.

Badge d'installations actives Badge Badge de score de santé

FAQ

Enhanced Body Class: quick answers

Réponses directes, extraites des données en direct WordPress.org.

Source : WordPress.org

Is Enhanced Body Class free?

Yes. Enhanced Body Class is free to download and use from the official WordPress.org plugin directory.

Is Enhanced Body Class safe to use in 2026?

Enhanced Body Class is a solid plugin choice in 2026, with a few things worth checking first. Was last updated 2 weeks ago, and scores 64/100 on our health check.

How many websites use Enhanced Body Class?

Enhanced Body Class is active on <10 WordPress websites and has been downloaded 1,806 times since it launched in February 2019. It was downloaded 115 times in the last 30 days.

Does Enhanced Body Class work with WordPress 7.1?

Yes. The developer has tested Enhanced Body Class up to WordPress 7.1.5, the latest release. It requires WordPress 4.6 or newer.

What PHP version does Enhanced Body Class need?

Enhanced Body Class requires PHP 5.6.40 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Enhanced Body Class last updated?

The latest version, 1.0.9, was released on November 21, 2026 (2 weeks ago).

Who makes Enhanced Body Class?

Enhanced Body Class is developed and maintained by Noah J. Stewart.

Propulsé par PageForge

Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.

PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.

  • CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
  • Son propre titre, URL, SEO champs et schéma pour chaque page
  • Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
  • Gratuit sur WordPress.org, pas de carte de crédit

↑↓ bouger↵ ouvrir