我正在尝试在我的网站中显示网站徽标,我已将其上载到“网站徽标”部分的“主题->自定义->徽标->发布”下
我在函数中添加了以下代码。php支持
function theme_prefix_setup() {
add_theme_support( \'custom-logo\', array(
\'height\' => 100,
\'width\' => 400,
\'flex-width\' => true,
) );
}
add_action( \'after_setup_theme\', \'theme_prefix_setup\' );
标题中的以下代码。php显示徽标<a class="footer_link" href="index.php"><img src="<?php echo the_custom_logo(); ?>/assets/images/logo.png" /></a>
但徽标没有显示,请帮帮我