📜  wordpress 徽标 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:06.105000             🧑  作者: Mango

代码示例2
function themename_custom_logo_setup() {
 $defaults = array(
 'height'      => 100,
 'width'       => 400,
 'flex-height' => true,
 'flex-width'  => true,
 'header-text' => array( 'site-title', 'site-description' ),
 );
 add_theme_support( 'custom-logo', $defaults );
}
add_action( 'after_setup_theme', 'themename_custom_logo_setup' );