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.
It would be nice to have a class set in the body tag when admin menu is present. This way it will be easy to adjust the background if it exist, among other things.
Comment | File | Size | Author |
---|---|---|---|
#1 | admin-565502.patch | 546 bytes | Jackinloadup |
Comments
Comment #1
Jackinloadup CreditAttribution: Jackinloadup commentedI thought this would be a nice feature as well. Here is a patch to do just that.
This should patch should add the admin-menu class to $body_classes on any page admin_menu is allowed to show on.