Add category name to body class of post

Some times you mat need to style posts differently depending on which category they are in. WordPress by default does not add the category to the body class so you need to add this to your themes’ functions.php file or create a plugin for it.


Hire Me

If your interested in hiring me then please use the form below to send me details of your project and will be in touch shortly.