[wp-trac] [WordPress Trac] #23470: Convert slash to dash and make body class for page templates look better

WordPress Trac noreply at wordpress.org
Tue Apr 29 06:07:04 UTC 2014


#23470: Convert slash to dash and make body class for page templates look better
--------------------------+------------------------------
 Reporter:  Caspie        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Themes        |     Version:  3.4
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  template
--------------------------+------------------------------

Comment (by obenland):

 We won't be able to just change the way we pass on the page template
 class, too many themes are using the current syntax. We'd have to add the
 optimized version as an additional class.

 I like the idea of having subfolder names as a separate body class, though
 it makes [attachment:23470.2.diff] a bit more verbose than I'd like it to
 be. Using Twenty Fourteen as an example, theme authors could use attribute
 selectors to make that work too: `[class*="page-template-page-
 templates"]`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/23470#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list