This module allows users to add custom CSS classes to block titles, content, and wrappers directly through the block's configuration interface, avoiding the need for custom Twig template overrides.
Block Classes allows users to add classes to block title, content, and wrapper of any block through the block's configuration interface. This module extends the Block Class module features.
In some cases, we have to write twig file for blocks, if we want to add separate classes for block wrapper, title, and its content. Instead of writing twig's, we can handle it using the Block Classes module.
Ask your assistant about Block 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
- block Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.