Append page slug to body_class function
|Reported by:||andrewsvg||Owned by:|
I actually do this already on all of my sites, and thought this would be an obvious, amazing thing to add to the body_class function. Pretty much what you'd expect; the page-slug gets appended to the body_class, allowing for page-specific styling.
<?php body_class($post->post_name . ' '); ?>