Skip to content

Commit

Permalink
サイトタイトルのリッチリザルトの不具合修正
Browse files Browse the repository at this point in the history
  • Loading branch information
yhira committed Jul 7, 2023
1 parent f2d437c commit 57978f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/html-forms.php
Expand Up @@ -421,7 +421,11 @@ function generate_the_site_logo_tag($is_header = true){
$home_url = apply_filters('footer_site_logo_url', $home_url);
$site_logo_text = apply_filters('footer_site_logo_text', $site_logo_text);
}
$logo_before_tag = '<'.$tag.' class="logo'.$class.'"><a href="'.esc_url($home_url).'" class="site-name site-name-text-link" itemprop="url"><span class="site-name-text" itemprop="name about">';
$itemprop = null;
if (!$logo_url) {
$itemprop = ' itemprop="name about"';
}
$logo_before_tag = '<'.$tag.' class="logo'.$class.'"><a href="'.esc_url($home_url).'" class="site-name site-name-text-link" itemprop="url"><span class="site-name-text"'.$itemprop.'>';
$logo_after_tag = '</span></a></'.$tag.'>';
if ($logo_url) {
$site_logo_tag = '<img class="site-logo-image '.$img_class.'" src="'.$logo_url.'" alt="'.esc_attr($site_logo_text).'"'.$width_attr.$height_attr.'><meta itemprop="name about" content="' . esc_attr($site_logo_text) . '">';
Expand Down

0 comments on commit 57978f1

Please sign in to comment.