Opened 3 years ago
Closed 3 years ago
#15017 closed defect (bug) (fixed)
get_body_class() doesn't return information about the current custom taxonomy archive
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1 |
| Component: | Taxonomy | Version: | |
| Severity: | normal | Keywords: | has-patch, ui-feedback |
| Cc: |
Description
Custom taxonomy archives don't get a body class added. Patch attached.
Attachments (4)
Change History (12)
The first patch was flawed. The second one adds
tax-$taxonomy and
tax-$taxonomy-$term
which makes this usable.
why not <body class="... tax-$taxonomy term-$term ...">?
that would save the $taxonomy duplication and both can be combined in css selectors by concatenation (body.tax-$taxonomy.term-$term). Additionally, from a styling perspective the same term can be addressed across taxonomies
Note: See
TracTickets for help on using
tickets.

Trivial patch