Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Usage Milestone: Time Field for Drupal 8+ Module time_field crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Page Specific Class

2,685 sites Security covered Drupal 9–11
View on drupal.org

This module allows you to add custom CSS classes to the `<body>` tag of specific pages based on their URL paths. This can be useful for applying unique styling to different sections of your website.

Ability to add HTML attribute classes for CSS styling to the <body> tag based on path conditions. Specify body classes for pages by using their paths.

Features

  • Add different classes to the body tag of any page.
  • Support all Pages which can be created via Node, Views or Custom Route

How to use?
============
To learn more about the project and how to install and use it check out the README.txt. Feel free to report issues and by helping on the documentation pages.

Video tutorial = Check on Youtube

Similar projects with different attempts:

  1. Custom Body Class (very similar)
  2. Body node ID class
  3. Extra body classes

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
May 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 3
Maintenance
Dormant

Release Timeline

Releases

Version Type Core Release date
2.0.10 Stable 9–11 May 29, 2025
2.0.9 Stable 9–11 May 7, 2025
8.x-1.x-dev Dev 8–9 May 7, 2025