[Support request] Sticky on both menus

Home Forums Support [Support request] Sticky on both menus

Home Forums Support Sticky on both menus

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #631689
    Claire

    Hi
    Hope you can help.
    I want to enable sticky navigation, but I’m using both my primary and secondary menu above the header.
    I’ve had to use my primary menu as the top one (as this has the cart and search enabled), and then the secondary one as the main navigation below it.
    Is there a way to make them both sticky?
    Thanks
    Claire

    #632061
    Tom
    Lead Developer
    Lead Developer

    You could try something like this:

    #secondary-navigation {
        position: sticky;
        top: 35px;
    }

    Let me know 🙂

    #632178
    Claire

    Hi Tom

    Thanks for your help, sadly sticky doesn’t seem to be recognised?

    Thanks

    Claire

    #632608
    Tom
    Lead Developer
    Lead Developer

    Hmm, try this instead:

    #secondary-navigation {
        position: fixed;
        top: 35px;
        left: 0;
        right: 0;
    }
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.