Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sec_add_body_class( $classes ) {
- global $post;
- if ( has_tag( 'the-tag-you-want', $post ) ) {
- $classes[] = 'your-css-class';
- }
- return $classes;
- }
- add_filter( 'body_class', 'sec_add_body_class' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement