Where does body_class go?
-
Hey guys,
I’m trying to assign a body class to some pages in order to create ‘current’ states for page links using this: <body <?php body_class( ‘x’ ); ?>
The only way that inserting this chunk of code DOESN’T disrupt the flow of elements on the page is when I put it before the get_header call, which I seem to remember reading was a big no-no. Is this ‘legit’?
Thanks.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Where does body_class go?’ is closed to new replies.