Role classes module is very light and useful to manage the dynamic classes for the theme to style or show/hide blocks or content for a specific role. Role classes module is used to define classes for each role in the body tag of the page all over the site.

Installation
Role classes can be installed easily.

Composer installation:
Copy the composer command from the module page and run using the terminal from the root path.
Go to Admin > Extend and enable the module.

Manual installation:
Download the module and put to your root/modules/contribe/ directory, or where ever you install contrib modules on your site.
Go to Admin > Extend and enable the module.

Configuration:
After Installing this module go to the Admin configuration page ([domain]/admin/config/role_classes) and add the classes for a specific or all the roles if required and save the settings.
After logged in as role for which you have added the class, Visit any front page and inspect the page and see your class in the <body> tag on the page.

Project information

Releases