0
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.

  • Looks like it is taking the width and height atts on the link you provided – mrben522 Mar 16 at 17:11
  • I don't see the_custom_logo() function and can't imagine what it does. – Max Yudin Mar 17 at 6:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.