This module adds CSS classes to the body of a page when a view is displayed, allowing for easier styling of view output. The classes added correspond to the view's ID and display ID.
Add contextual CSS classes to the body of the page when displaying a view.
The module currently adds two classes to the body of the page:
view-id--[view_id]view-display--[display_id]
Drupal 11
· not 10
Ask your assistant about View Body 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
- views Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.