[wp-trac] [WordPress Trac] #18118: Append page slug to body_class function

WordPress Trac wp-trac at lists.automattic.com
Tue Jul 26 09:05:37 UTC 2011


#18118: Append page slug to body_class function
-----------------------------+------------------------------
 Reporter:  andrewsvg        |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Themes           |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+------------------------------

Comment (by DennisSmolek):

 It wont need a prefix as the body tag already gets the post type as a part
 of the class object. you would just use .post.page-title {}
 There are two ways, one as a functions.php add on, the other as a part of
 the core file. You would want to check if its post/page because they have
 different name functions.

  There is actually an example of this somewhere in the codex..

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


More information about the wp-trac mailing list