Site logo

Archived topic

Remove title attribute from site logo link in the header

3 replies · Started by Matt on May 13, 2020

Viewing posts 1–4 of 4

Hi,

I have removed the title attribute from the logo image with the following snippet:

add_filter( 'generate_logo_attributes', function( $atts ) {
    unset( $atts['title'] );
    return $atts;
} );

I also need to remove the title attribute from the anchor that contains the logo image. It looks like I need to affect generate_logo_title but I can't quite work out how to do it with a filter.

Hey Leo, that's the line. I want to keep the link but remove the title attribute from it.

This archived topic is closed to new replies.