我在函数中有这个。php:
add_theme_support( \'custom-logo\', array(
\'height\' => 200,
\'width\' => 1000,
\'flex-width\' => true,
\'flex-height\' => true,
) );
在我的头文件中:<div class="site-branding">
<?php
the_custom_logo();
if ( is_front_page() || is_home() ) : ?>
<h1 class="site-title"><?php bloginfo( \'name\' ); ?></h1>
<?php else : ?>
<p class="site-title"><?php bloginfo( \'name\' ); ?></p>
<?php
endif;
$description = get_bloginfo( \'description\', \'display\' );
if ( $description || is_customize_preview() ) : ?>
<p class="site-description"><?php echo $description; /* WPCS: xss ok. */ ?></p>
<?php
endif; ?>
</div>
徽标链接到我的主页,我不知道为什么。是什么导致它这样做的?周围没有标签。如何使徽标不是链接?