This module adds helpful CSS classes to blocks, nodes, users, and terms based on their region or content count. This can be used for advanced styling and theming.
* Adds region machine names as classes on blocks.
* Adds a class on any node with one individual piece of content.
* Adds a class on any user with one individual piece of content.
* Adds a class on any term with one individual piece of content.
INSTALLATION
- Install via /admin/modules
- drush en default_class -y
- composer require drupal/default_class
Ask your assistant about Default Classes
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.1 | Stable | 8–11 | Jul 14, 2024 |