Add an extra body class?
-
Hi guys,
Simply, is there a definitive, easy, way to add a new body class in 2.8?
I have accomplished it, but had to go into the post-template.php file in wp-includes, which isn’t ideal:
// controls body class background colours if ($pageID == 7 || $wp_query->post->post_parent == 7){ $classes[] = 'fmcg'; } if ($pageID == 8 || $wp_query->post->post_parent == 8){ $classes[] = 'corp'; }
I’ve come across a few tutorial posts like this one (https://is.gd/28nAK). Just wondered how other people were doing it really?
Thanks,
L
Viewing 14 replies - 1 through 14 (of 14 total)
Viewing 14 replies - 1 through 14 (of 14 total)
- The topic ‘Add an extra body class?’ is closed to new replies.