ID ?? null ) && dyad_2_jetpack_featured_image_display() ) { $classes[] = 'has-post-thumbnail'; } //Has featured image? if ( is_page() && has_post_thumbnail() && dyad_2_jetpack_featured_image_display() ) { $classes[] = 'has-post-thumbnail'; } $header_image = get_header_image(); if ( ( ! dyad_2_has_banner_posts( 1 ) && ( is_home() || is_archive() || is_search() ) ) && '' == $header_image ) { $classes[] = 'no-featured-posts'; } $classes[] = 'no-js'; return $classes; } add_filter( 'body_class', 'dyad_2_body_classes' );