'custom-logo', 'itemprop' => 'logo', ]; /** * If the logo alt attribute is empty, get the site title and explicitly * pass it to the attributes used by wp_get_attachment_image(). */ $image_alt = get_post_meta( $custom_logo_id, '_wp_attachment_image_alt', true ); if (empty($image_alt)) { $custom_logo_attr['alt'] = get_bloginfo('name', 'display'); } /** * If the alt attribute is not empty, there's no need to explicitly pass * it because wp_get_attachment_image() already adds the alt attribute. */ $logo_html = sprintf( '%2$s', esc_url( home_url( '/' ) ), wp_get_attachment_image( $custom_logo_id, 'full', false, $custom_logo_attr ) ); } $tagline_class = 'site-description ' . blocksy_visibility_classes( blocksy_default_akg('tagline_visibility', $atts, [ 'tablet' => true, 'mobile' => true, ]) ); $tag = 'span'; if (is_home() || is_front_page()) { if ($device !== 'mobile') { $tag = 'h1'; } } if (blocksy_default_akg('site_title_custom_tag', $atts, 'default') === 'custom') { $tag = blocksy_default_akg('site_title_wrapper', $atts, 'h1'); } $tagline_tag = blocksy_default_akg('site_description_wrapper', $atts, 'h2'); ?>