Avada Forums Community Forum Tabs Closed on mobile Reply To: Tabs Closed on mobile

cops_lba
Participant
Post count: 3

To fire the script only on small windows add

if(window.innerWidth <= 760){
...yourscripthere...
}

Note that the script fires only once so there will be no change if you change the screen size after it loads unless you refresh the page.