On This Page
On This Page
Username Body Class
Overview
Adds user-{login} and user-id-{id} body classes for logged-in users on the front end and in admin—handy for personalization and targeted CSS. Privacy note: the username and user ID appear in the HTML source for that logged-in user. No settings. Stacks with Custom Body Class and User Role Body Class.

- Developers building per-user CSS/JS hooks
- Sites with personalization experiments for logged-in users
- Teams that accept the privacy tradeoff of username/ID in HTML
Features
Username class
User ID class
Front end and admin
Privacy-aware docs
Use Cases
- Per-user QA flagsShow debug CSS only for a specific user-id-* during testing.
- Soft personalizationTarget a VIP username class for a subtle UI variant.
- Admin toolingStyle wp-admin differently for a known maintenance account.
Frequently Asked Questions
What does Username Body Class do in WP PowerSuite?
It adds body classes for the logged-in username and user ID on the front end and in admin.
How do I enable Username Body Class in WP PowerSuite?
Enable the module. There is nothing else to configure.
Who should use Username Body Class?
Developers who need per-user CSS/JS hooks and accept the privacy tradeoff.
Is the username visible in HTML?
Yes—for that logged-in user, username and ID appear in the page source.
Is Username Body Class a free or Pro module in WP PowerSuite?
It is included (free) with WP PowerSuite.

