1. 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

Discussion in 'Styling and Customization Questions' started by Brad P, May 4, 2015.

  1. Brad P

    Brad P Active Member

    See pictures below. I would like to remove just the "watched threads" "feature threads" "new posts" part out of the navbar. Only on the scroll down when moving down the forums.

    Is this possible ?
     

    Attached Files:

  2. Brad P

    Brad P Active Member

    Well the navbar moves down with the page is what I'm meaning sorry.
     
  3. Martok

    Martok Well-Known Member

    This looks like UI.X. You should post for support in the add-on thread for that.
     
  4. Brad P

    Brad P Active Member

    Is there a dedicated thread then? As it's only navbar?
     
  5. Martok

    Martok Well-Known Member

  6. Brad P

    Brad P Active Member

    I believe my navbar is Java script not UI.X

    I have not got a UI.X theme
     
  7. Brad P

    Brad P Active Member

    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
     
  8. Martok

    Martok Well-Known Member

    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?
     

Share This Page