Summary
Extends the Block Class module to incorporate styles (or themes) rather than css classes. Adds style-based tpl suggestions. Allows HTML in your block titles.
If you have a dependency on this module and you need a Drupal 8 version, please let me know by commenting on (or creating) the issue called “Drupal 8 Port”. I will prioritize those modules that have the most votes for Drupal 8 first over others.
Overview
Styles...
- Are one or more classes with a given Style/Display Name
- Are defined by admins
- Are used by content managers
- Allow separation of css classes from semantic or logical style names
- Generate style-based block template suggestions for themers
- Are assigned to blocks either singularly or in multiple (based on settings)
When you assign a style to a block...
- It's tpl receives the classes of that style as $block_classes (See Block Class for more info.)
- The theme engine checks for a block template for that specific style
Additional features...
- Allows the ability to set a global text format for custom block titles; this allows you to now have HTML in your custom block titles. Yes, you can now have block titles that contain HTML markup!
Requirements
Requires the Block Class module
API
- block_class_styles_info()
- block_class_styles_info_alter()
Similar Modules
Support the Development
If you would like to make a donation to support this work, please click here.
Other Sponsors:
Fairhaven Health
Supporting organizations:
Development and Support
Project information
Seeking new maintainer
The current maintainers are looking for new people to take ownership.No further development
No longer developed by its maintainers.597 sites report using this module
- Created by aklump on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.


