Site logo

Archived topic

WCAG 2.0 AA Redundant title issue

1 reply · Started by Anthony on February 28, 2019

Viewing posts 1–2 of 2

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?

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?

This archived topic is closed to new replies.