Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Using the Styles API Module allows to set different styles for block wrapper theme.
This module affects only block.html.twig, and not the way content is displayed.
Classes could be added to block wrapper, even if block theme has not been overwritten.
The styles selector is shown at the end of the block configuration form.
Installation
- Download and install Styles API Module.
- Download and install Block Styles.
- Enter to the block configuration form and select styles.
Included styles
- Clean wrapper (cero marckup)
- Bootstrsap styles on submodule (modal, dropdown, card and collapse)
For developers
New layouts can be defined using *.themes.yml
with type=block
. Please refer to Styles API Module for detailed information.
Supporting organizations:
Development
Project information
- Module categories: Administration Tools, Content Editing Experience, Content Display
- 1,625 sites report using this module
- Created by hatuhay on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.