LH Add Roles to Body Class
Adds the currently logged in users role (or roles) to the body class in both the front and back end.
Plugin info
Maintenance & Compatibility
Maintenance score
Possibly abandoned • Last updated 1251 days ago • 1 reviews
Is LH Add Roles to Body Class abandoned?
Possibly abandoned (last update 1251 days ago).
Compatibility
Similar & Alternatives
Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.
Description
Ever wanted to style your content differently depending on the role of the logged in user viewing your content?
Well now you can, simply activate the plugin and you are right to go.
Like this plugin? Please consider leaving a 5-star review.
Love this plugin or want to help the LocalHero Project? Please consider making a donation.
Installation
- Upload the entire
lh-add-roles-to-body-classfolder to the/wp-content/plugins/directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- That is it
Frequently Asked Questions
So you can add CSS selectors based on those classes to override and modify your site design.
For example a red background for an administrator
.role-administrator { background-color: red; }
Please contact me for custom work and enhancements here: https://shawfactor.com/contact/
Review feed
Screenshots
Changelog
1.00 May 20, 2018
Initial release
1.01 June 12, 2019
Bettter code architecture