[wp-trac] [WordPress Trac] #19736: Add default body_class classes for Theme Names

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 4 18:43:22 UTC 2012


#19736: Add default body_class classes for Theme Names
-------------------------------------+------------------------------
 Reporter:  cais                     |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Themes                   |     Version:  3.3.1
 Severity:  minor                    |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------------------

Comment (by cais):

 Replying to [comment:4 GaryJ]:
 > Replying to [comment:2 cais]:
 > > The Theme Name (aka theme slug) is already exposed in the path to the
 Theme's stylesheet
 > If a theme *does* want to play nicely with certain plugins, then it can
 add it's own class in 5 lines of code, or the plugins can handle providing
 theme-specific styles if they are providing any styles at all, including
 detecting the active theme.

 I look at this as more for a third-party to be able to have themes and
 plugins able to play nicely with each other rather than pushing the theme
 / plugin authors to differentiate between which ones they will favor and
 which they will not; but that also takes us into what is becoming a non-
 related matter.

 Again, as I prefaced above, this may be more a Mallory-Everest idea with a
 working patch that proves it out. If a developer, such as you have chosen
 to do, wants to "hide" the theme name they can just as easily remove these
 or any other classes from the `body_class` output.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19736#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list