I do what you’re trying to do by adding it directly to the body tag. Example on how to add a class to interior pages.
<body <?php if(!is_front_page()){body_class('interior-page');}else{body_class();} ?>>
I do what you’re trying to do by adding it directly to the body tag. Example on how to add a class to interior pages.
<body <?php if(!is_front_page()){body_class('interior-page');}else{body_class();} ?>>