Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Page Specific Class

Security covered Maintenance fixes only 2,679 sites

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
Drupal 9–11

Ask your assistant about Page Specific Class

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

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
5
Tracked since
Jul 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 3
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP 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
2.0.8 Stable 9–10 Jul 3, 2023
2.0.x-dev Dev 9–11 Jul 3, 2023