add_theme_support( 'custom-logo', array(
'height' => auto,
'width' => 200,
'flex-width' => true,
'flex-height' => true,
) );
and
function theme_prefix_the_custom_logo() {
if ( function_exists( 'the_custom_logo' ) ) {
the_custom_logo();
}
}
Live link
But it is not taking the custom width
and height
dimension.