Scroll to active tab
-
When I link to the tab using your link format
yoursite.com/contact/?target=phone-numbers
when I get to the page, the tab is open, but the page does not scroll to the open tab.
I tried placing an anchor inside the open tab – and using the following link format
yoursite.com/contact/?target=phone-numbers#phone-numbers
This does open the page at the correct spot, but I have a new problem. When the page loads – all of the tabbed content is shown until the tab functions initialize. This moves the page, and although the viewport lands at the proper location when the page loads, when the tabs initialize – the viewport is now showing a different section of the page.
Do you have any functions in your plugin that allow me to link to a specific tab, and also scroll directly to the top of the open tab?
- The topic ‘Scroll to active tab’ is closed to new replies.