• Resolved Rachel

    (@jaxrachel)


    Hello, i have the skiplink enabled “skip to content”, but when i click it and it brings me to the content area, if I hit tab again, it takes me back to the top of the page to the next skiplink. Shouldn’t it bring me to the first element in the content area that we’ve skipped to? i am not sure the usual function or process of a keyboard navigation…

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    Without a link to the site, I can’t say for sure, but it sounds like your site may be using a scripted “smooth scroll” library. Those frequently capture in-page links and break them by only moving the visual position and not changing the focus point, which has the effect you’re talking about. It’s particularly unfortunate because, in modern browsers, all that’s required to have a smooth scroll is one line of CSS:

    html { scroll-behavior: smooth; }

    I’ll need to see the site to be more detailed, however.

    Hi Joe.

    First of all, thank you for this amazing plugin! We love it!

    We are also experiencing the same issue with the “Skip to Content” scrolling perfectly to the main content area, but then when we hit tab again, it takes us back to the first element at the top of the page. I don’t believe we are using any smooth scroll effects although it could be part of the theme we are using. Could I ask you to take a look to see if there is something we’re overlooking here?

    Thanks so much! Site Use: owh

    • This reply was modified 2 years, 3 months ago by jquinn33.
    Plugin Author Joe Dolson

    (@joedolson)

    I haven’t been able to load your website; it just times out. Let me know if there’s something more I need to know to be able to look at this!

    My apologies! The site is now here. Same pw. Thank you!

    Plugin Author Joe Dolson

    (@joedolson)

    It’s definitely using scripting to implement smooth scroll. The evidence is in the behavior: if that was a normal, browser-controlled link, then the focus would move. The fact that it’s scrolling to a position without moving focus is the evidence.

    It wasn’t totally obvious to me what’s implementing it; but I’d gamble it’s the theme.

    Thank you, Joe. I suspect you are correct that it’s theme related. I appreciate your time in taking a look! Again… great plugin!

    Thread Starter Rachel

    (@jaxrachel)

    For me it’s being caused by the plugin Elementor. As soon as I deactivated it, the correct functionality returned.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Skip to main content question’ is closed to new replies.