Opened 7 years ago
Closed 7 years ago
#7537 closed enhancement (fixed)
Add the current theme compat id to the body class array
Reported by: | hnla | Owned by: | hnla |
---|---|---|---|
Milestone: | 2.9 | Priority: | low |
Severity: | trivial | Version: | |
Component: | Core | Keywords: | has-patch |
Cc: |
Description
It might be helpful to add the theme_compat->theme->id
to the body classes as an additional hook for authors, plugins to be able to hook styles to particular template packs.
We can do this now in advance of new registered themes safely as we'll just be adding a class that wouldn't exist before.
I've used the id in stead of the name as 'name' in legacies case is a string with whitespace, instead I've prepended bp-
to the id to create the class token.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Add theme_compat id to body classes.