[wp-trac] [WordPress Trac] #19736: Add default body_class classes for Theme Names
WordPress Trac
noreply at wordpress.org
Fri Jan 24 10:56:54 UTC 2025
#19736: Add default body_class classes for Theme Names
---------------------------------------------+-----------------------
Reporter: cais | Owner: audrasjb
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.8
Component: Themes | Version: 3.3.1
Severity: normal | Resolution: fixed
Keywords: has-patch needs-dev-note commit | Focuses: css
---------------------------------------------+-----------------------
Changes (by audrasjb):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"59698" 59698]:
{{{
#!CommitTicketReference repository="" revision="59698"
Themes: Add `wp-theme-<name>` and `wp-child-theme-<name>` classes to
`body_class`.
This changeset introduces new classes to the body tag. The classes `wp-
theme-<name>` and `wp-child-theme-<name>` (when the current theme is a
child theme) are added, where `<name>` represents the sanitized name of
the active theme.
Props cais, GaryJ, nacin, SergeyBiryukov, johnjamesjacoby, nirajgirixd,
poena, audrasjb, rinkalpagdar.
Fixes #19736.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/19736#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list