Install

Works with Drupal: ^9 || ^10 || ^11

Using dev releases is not recommended, except for testing.

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 21.58 KB
MD5: acc72593e4118dbdafdb98a5223f7328
SHA-1: 20cd88f6c7a3e0277ce025b11da5ef9af85bd597
SHA-256: e694dc9f9d9037408e68317e1bd825f5d8acd4fa5568fdaeb6314dd1d4ac161f
Download zip 26.25 KB
MD5: caaad95f863b80f183a03e7b71e8071d
SHA-1: 1bc3238b36a0a8cd52c5d068dd12ea65863a8e73
SHA-256: 37287f85c0127a07339810d74440b45afd2243588132a736d4848747ed7a8a8b

Release notes

Legacy version: adding CSS classes only (features ported from D7):

Initial Drupal 10 development branch for Block Class:

 
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.

Created by: dydave
Created on: 26 Jul 2024 at 01:35 UTC
Last updated: 15 May 2026 at 16:46 UTC

Other releases