[Resolved] Sticky navigation on the bottom

Home Forums Support [Resolved] Sticky navigation on the bottom

Home Forums Support Sticky navigation on the bottom

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #359976
    Ash

    What’s the best way to make navigation sticky on the bottom with GP?
    But I’d like to keep header on top.

    like this.
    http://www.22centralparksouth.com/

    #360028
    Tom
    Lead Developer
    Lead Developer

    You could try this:

    #site-navigation {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }
    #360257
    Ash

    Thank you.
    Is it possible to add some elements below navigation something footer-ish such as copyright.

    #360404
    Tom
    Lead Developer
    Lead Developer

    So it’s always sticky as well?

    #360431
    Ash

    Yes it is.

    #360619
    Tom
    Lead Developer
    Lead Developer

    Try this:

    .site-info,
    #primary-navigation {
        position: fixed;
        left: 0;
        right: 0;
    }
    
    .site-info {
        bottom: 0;
    }
    
    #primary-navigation {
        bottom: 40px; /* height of copyright bar */
    }
    #360701
    Ash

    Works. Thank you.
    Is it possible to show mobile navigation to opposite direction?
    top to bottom -> bottom to top

    #360777
    Tom
    Lead Developer
    Lead Developer

    Not sure I understand. Are you wanting the navigation to be stuck on top while on mobile?

    #360809
    Ash

    My bad,
    I thought mobile menu still opens downward but actually it opens upward when it’s on the bottom..
    So no problem.

    #360810
    Ash

    Actually it was not mobile menu, desktop menu still opens downward even though it’s on the bottom.

    #360854
    Tom
    Lead Developer
    Lead Developer

    Ah, the regular dropdown menu you mean? Can you link me to the site?

    #360860
    Ash

    Yes, regular dropdown.

    #360865
    Tom
    Lead Developer
    Lead Developer

    Add this:

    .main-navigation ul ul {
        top: auto;
        bottom: 60px;
    }
    
    .dropdown-menu-toggle:before {
        content: "\f106";
    }
    #360867
    Ash

    Worked!
    Awesome ๐Ÿ™‚

    #361091
    Tom
    Lead Developer
    Lead Developer

    Glad I could help ๐Ÿ™‚

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.