Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #450259

    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.

    #450265

    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’});

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Using Scroll Spy with a sub menu’ is closed to new replies.