Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
add_filter( 'get_custom_logo', 'wecodeart_com' );
// Filter the output of logo to fix Googles Error about itemprop logo
function wecodeart_com() {
$custom_logo_id = get_theme_mod( 'custom_logo' );
$html = sprintf( '<a href="%1$s" class="custom-logo-link" rel="home" itemprop="url">%2$s</a>',
esc_url( home_url( '/' ) ),
wp_get_attachment_image( $custom_logo_id, 'full', false, array(
'class' => 'custom-logo',
'title' => 'новый тайтл'
) )
);
return $html;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question