Customise WordPress body_class and post_class with Conditional PHP Filte ...
Add your own classes with the body_class and post_class filters body_class() and post_class() print a set of CSS classes that describe the current page and the current post: single, single-post, postid-42, logged-in, has-post-thumbnail, category-news and many more. They are useful for CSS, and two filters let you add classes of your own: a layout chosen…