Add Category Name to body_class
The body_class function is nice for adding a bunch of classes to the body tag that have information about what kind of page is currently being displayed. Probably for styling purposes. But for whatever reason, it doesn’t include a class for the current category (or categories) for a single post. This adds that category “nice” … Continue reading Add Category Name to body_class
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed