[wp-trac] Re: [WordPress Trac] #7939: add body_class function

WordPress Trac wp-trac at lists.automattic.com
Thu Feb 12 23:02:46 GMT 2009


#7939: add body_class function
-------------------------+--------------------------------------------------
 Reporter:  kretzschmar  |        Owner:  anonymous
     Type:  enhancement  |       Status:  reopened 
 Priority:  normal       |    Milestone:  2.8      
Component:  Template     |      Version:  2.8      
 Severity:  normal       |   Resolution:           
 Keywords:  needs-patch  |  
-------------------------+--------------------------------------------------

Comment(by jamescollins):

 The body_class() function currently adds the post id to the list of
 classes (eg postid-827).

 Would it be possible to include another class for the page id (if a page
 is being displayed)?

 eg: "pageid-828"

 I could write a simple patch to do this, but I'm not sure if ionfish is
 still working on rewriting the function?

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


More information about the wp-trac mailing list