[Support request] Remove title attribute from site logo link in the header

Home Forums Support [Support request] Remove title attribute from site logo link in the header

Home Forums Support Remove title attribute from site logo link in the header

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1282260
    Matt

    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.

    #1282822
    Leo
    Staff
    Customer Support

    Hi there,

    Just to make sure, you are trying to remove this entire HTML?
    https://www.screencast.com/t/xi6wyrLm

    #1283015
    Matt

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

    #1283018
    Leo
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.