Install
Works with Drupal: ^9 || ^10 || ^11Using dev releases is not recommended, except for testing.
Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
Legacy version: adding CSS classes only (features ported from D7):
Initial Drupal 10 development branch for Block Class:
- Implement semantic versioning:
Port of block_class-8.x-1.x to #3463909: Switch to semantic versioning legacy 8.x-1.x development branch . - Drop support for D8.
Â
Moved development from 8.x-1.x to 3.0.x:
Further development on the 8.x-1.x branch is discontinued in favor of 3.0.x.
(Cloned branch 8.x-1.x to 3.0.x)
🟢 Block Class 3.x - stable (Legacy: port from D7)
- Does very well what it says it does, a single thing: Adding custom CSS classes to blocks from the admin back-end UI.
- Very stable, simple and lightweight, fully Tests covered and well maintained.
- Easy to use: No settings or documentation, just enable the module and get any kind of user (developer, content editor) started immediately with adding CSS classes to blocks.
- Recommended and preferred upgrade path from Drupal 7.
It is possible to upgrade from 3.x to 4.x, but not the other way around.
The 3.x branch still provides an intermediate step for sites upgrading from Drupal 7 already satisfied with the features of a direct port of the D7 module.
An upgrade to 4.x can still be considered afterwards. 👌
Upgrading from prior versions: 8.x-1.x or 2.x
For any upgrade from versions prior to the 3.x or 4.x, see documentation page Block Class Version compatibility.
🛑 Do not upgrade from 2.0.x to 3.0.x.