Title: Skip Links Attributes
Last modified: September 3, 2020

---

# Skip Links Attributes

 *  Resolved [jomo5280](https://wordpress.org/support/users/jomo5280/)
 * (@jomo5280)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/skip-links-attributes/)
 * I have an accessibility expert that is concerned that the role attribute is set
   to “navigation” on the skip link and should be removed.
 * here is what it looks like:
 * `$('body').prepend('<div class="wpa-hide-ltr" id="skiplinks" role="navigation"
   aria-label="Skip links"><a href="#main-content">Skip to content</a> </div>');
   $('#main-content').attr('tabindex','-1');`
 * Is that a valid concern? If so, is there a way to remove that attribute?
    -  This topic was modified 5 years, 9 months ago by [jomo5280](https://wordpress.org/support/users/jomo5280/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/skip-links-attributes/#post-13358674)
 * Some people will be considered that it’s set, others will be concerned that it
   isn’t; so it readily goes either way.
 * In neither case is it an accessibility problem; only a difference of opinion 
   on what the optimal choice would be. The only difference is whether the skip 
   link will be navigable within landmark regions by a screen reader; in this case,
   it will.
 * This is not particularly necessary: there are other ways to get to the top of
   the page to find the skip link, should that be needed. But it also does not do
   significant harm.
 * You could remove it either by editing the plug-in or by enqueuing custom JS that
   loaded after this did and removed the role.
 *  Thread Starter [jomo5280](https://wordpress.org/support/users/jomo5280/)
 * (@jomo5280)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/skip-links-attributes/#post-13358744)
 * Thank you for your response!
    This is proving to be a very “subjective” topic–
   and I agree with your talking points. Hopefully client can agree to disagree 
   for the better good of the entire website’s purpose.
 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/skip-links-attributes/#post-13362412)
 * Ultimately, I’d suggest that if you have a particular goal in mind, you should
   probably add skip links directly to your theme. Not having the skip link dependent
   on JavaScript would be better for your site, on the whole, and then you’d have
   complete control over it.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Skip Links Attributes’ is closed to new replies.

 * ![](https://ps.w.org/wp-accessibility/assets/icon-256x256.png?rev=1097582)
 * [WP Accessibility](https://wordpress.org/plugins/wp-accessibility/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-accessibility/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-accessibility/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-accessibility/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-accessibility/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-accessibility/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/skip-links-attributes/#post-13362412)
 * Status: resolved