How to add Project Tags to body class?
-
Howdy,
I would like to add the Project tags to the body_class so I can do fancy stuff ??
I am trying to work with this snippet, and adapt it to the Project Tags but I am not having any luck:
function add_category_name($classes = '') { if(is_single()) { $category = get_the_category(); $classes[] = 'category-'.$category[0]->slug; } return $classes; } add_filter('body_class','add_category_name');
Any help would be greatly appreciated.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How to add Project Tags to body class?’ is closed to new replies.