Replies: 0
Hi,
I’m using below codes in custom plugin to print logo without ID & class:
add_filter( 'get_custom_logo', 'wpse250683_custom_logo_output' );
function wpse250683_custom_logo_output() {
$custom_logo_id = get_theme_mod( 'custom_logo' );
$attachment = wp_get_attachment_image_src( $custom_logo_id, 'full', false );
$attachment_url = '';
if ( is_array( $attachment ) )
$attachment_url = $attachment[0];
$html = sprintf( '<a href="%1$s"><img src="%2$s" /></a>',
esc_url( home_url( '/' ) ),
$attachment_url
);
return $html;
}
Code above taken from http://wordpress.stackexchange.com/a/250687/81766
When activating KingComposer, the logo replaced with wp-content/plugins/kingcomposer/assets/images/get_start.jpg
instead of theme logo