【发布时间】:2018-12-04 16:56:27
【问题描述】:
我需要在 WordPress 定制器的站点标识中使用双徽标。一个在移动视图上,另一个在桌面视图上。两者是不同的图像。请提供添加两个徽标的代码。 我有添加一个自定义徽标的代码。我需要它在网站身份本身上
function lotus_flies_custom_logo_setup()
{
$defaults = array(
'height' => 139,
'width' => 176,
// 'flex-height' => true,
// 'flex-width' => true,
'header-text' => array( 'site-title', 'site-description' ),
);
add_theme_support('custom-logo', $defaults);
}
add_action('after_setup_theme', 'lotus_flies_custom_logo_setup');
【问题讨论】:
标签: wordpress wordpress-theming