[Support request] WCAG 2.0 AA Redundant title issue

Home Forums Support [Support request] WCAG 2.0 AA Redundant title issue

Home Forums Support WCAG 2.0 AA Redundant title issue

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #824891
    Anthony

    Hi, I am having an issue trying to get a website WCAG 2.0 AA Compliant. My clients lawyers have asked us to use the WAVE Web Accessibility Tool. I have fixed most of the errors and alerts that have been found, however 2 of them are eluding me that I need to get fixed.

    The following is what I need help with and are being flagged as redundant title text

    <a href="#content" title="Skip to content">
    Skip to content
    </a> 

    and

    <img alt="Scout Boats" src="https://www.scoutboats.com/wp-content/uploads/2017/08/scout-logo.png" />

    Do you know where in the php I can go in to modify these elements to get them under compliance?

    #825091
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    So the tool doesn’t like that the first element has a title? You could remove it like this:

    remove_action( 'generate_before_header', 'generate_do_skip_to_content_link', 2 );
    
    add_action( 'generate_before_header', function() {
        printf( '<a class="screen-reader-text skip-link" href="#content">%s</a>',
            esc_html__( 'Skip to content', 'generatepress' )
        );
    }, 2 );

    I’m not seeing a title attribute within that second element?

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.