Hi there,
try this:
add_filter( 'generate_navigation_logo_output','db_navigation_logo_htag' );
function db_navigation_logo_htag( $ouput ) {
return sprintf(
'<div class="site-logo">
<h1>
<a href="%1$s" title="%2$s" rel="home">
<img src="%3$s" alt="%4$s" />
</a>
</h1>
</div>',
esc_url( apply_filters( 'generate_logo_href' , home_url( '/' ) ) ),
esc_attr( apply_filters( 'generate_logo_title', get_bloginfo( 'name', 'display' ) ) ),
esc_url( apply_filters( 'generate_navigation_logo', $settings['sticky_menu_logo'] ) ),
esc_attr( apply_filters( 'generate_logo_title', get_bloginfo( 'name', 'display' ) ) )
);
}
And then some CSS just to remove any H1 styling that will mess up the logo:
.site-logo h1 {
margin-bottom: 0 !important;
line-height: unset;
font-size: 0;
}