Tag: Page

How to Add Post Slug to Body Class in WordPress

Adding the following code to your functions.php file will allows you to add post slug as a CSS class to body element in WordPress. We are using body_class filter to do this task.

/ October 24, 2015