• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.4 fixed navbar when scrolling down

Brad P

Active member
#7
Code:
<script>
    $(window).scroll( function() {
        if ($(window).scrollTop() > $('.fixedNavigationWrapper').offset().top)
            $('#navigation').addClass('fixed');
        else
            $('#navigation').removeClass('fixed');
    } );
    </script>
This is the code but not sure what part to remove
 

Martok

Well-known member
#8
Where did you get your theme and Javascript from? If you didn't create it and it was from another source, maybe you should be asking them?