if ( ! empty( $check_logoset[0] ) ) {
if ( function_exists( 'the_custom_logo' ) ) {
$output = get_custom_logo();
}
} else {
if( display_header_text() ) {
$output .= '<a rel="home" href="' . esc_url( home_url( '/' ) ) . '">';
$output .= '<h1 rel="home" class="site-title" title="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '">' . esc_html( get_bloginfo( 'name' ) ) . '</h1>';
$output .= '<h2 class="site-description" title="' . esc_attr( get_bloginfo( 'description', 'display' ) ) . '">' . esc_html( get_bloginfo( 'description' ) ) . '</h2>';
$output .= '</a>';
}
}
Thank you
In those case, revert to the latest "working" layout (with only the logo probably needing modification), then find the correct "logo to be replaced" file, and overwrite that file with your logo (keeping the old file name), BUT MAKING SURE the dimensions are exactly the same (otherwise you might introduce the layout errors again).