Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'genesis_attr_body', function ( $attributes ) {
- if (is_home()) {
- $attributes['id'] = 'home';
- } elseif (is_singular('department')) {
- $attributes['id'] ='in-staff-directory';
- } elseif (is_page('all-staff')) {
- $attributes['id'] ='in-staff-directory';
- } elseif (is_singular('leadership')) {
- $attributes['id'] ='in-staff-directory';
- }
- elseif (is_singular('parent-department')) {
- $attributes['id']='in-staff-directory';
- }
- }
- return $attributes; );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement