Hi, I have been trying to solve this all day to no avail!
I am trying to get a sub menu to use the scroll spy function which can be found on the one page enfold demo. I have a submenu added within the advanced page builder which is sticky, linking to #named color sections on my page, my pages are long so I wanted to indicate where in the page they were with this full width menu (change the class when the correct #section has reached the top of the page).
I have tried hacking at the avia.js file to see if i can get this function working but I just cant seem to do it.
hi, solved my own problem in the end!!
avia.js line 81 change:
$(‘body’).avia_scrollspy({target:’.main_menu .menu li > a’});
to:
$(‘body’).avia_scrollspy({target:’.av-subnav-menu li > a’});