With the Pro version, you can set the extension to automatically scroll the page to the top of the tab/accordion when you open it.
No scrolling
If you have set up the page scrolling in the Tabs & Accordions plugin settings, you can modify this behavior by adding the scroll
parameter to the first tab/accordion and set it to false
:
{tab title="Tab Title" scroll="false"}
First Tab
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Second Tab
Aenean commodo ligula eget dolor. Aenean massa.
Sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
Top Scrolling
With Top Scrolling, the page will scroll so that the tab or accordion is visible at the top of the view.
If you have no page scrolling setup - you can change that by adding the scroll
parameter to the first tab/accordion and setting it to top
:
{tab title="Tab Title" scroll="top"}
First Tab
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Second Tab
Aenean commodo ligula eget dolor. Aenean massa.
Sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
Adaptive Scrolling
With Adaptive Scrolling, the page will only scroll if the tab or accordion is not completely in view. If it is completely outside the view or partially visible at the top, it will scroll to the top. If it is partially visible at the bottom, it will scroll to the bottom.
If you have no page scrolling setup - you can change that by adding the scroll
parameter to the first tab/accordion and setting it to adaptive
:
{tab title="Tab Title" scroll="adaptive"}
First Tab
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Second Tab
Aenean commodo ligula eget dolor. Aenean massa.
Sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.