• Resolved rannesinc

    (@rannesinc)


    Hi all…

    I noticed that the demo site has a sticky top menu (or whatever it is called when the menu stays on top while scrolling).

    However, my top menu disappears when I scroll.

    Any solution available?

    Thanks.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi, I’m just a user of the subject
    I hope to solve your problem
    You have to add this code to the class:

    #nav-topbar.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    }

    Thread Starter rannesinc

    (@rannesinc)

    Thanks.

    It is working, partly.

    The menu stays on top but it is covering half of my header.

    Theme Author Alexander Agnarson

    (@alxmedia)

    Try adding this custom css as well:

    
    @media only screen and (min-width: 720px) {
    #header { padding-top: 50px; }
    }
    
    Thread Starter rannesinc

    (@rannesinc)

    Thanks but it is not changing anything.
    I tried to add padding but the padding was added below my logo so it only made thing worse.
    How can it work on the demo page for this specific theme and not on mine?
    Which css has been added there?
    Thanks.

    Theme Author Alexander Agnarson

    (@alxmedia)

    When you use the Boxed style for the theme it disables the sticky menu as it isn’t supposed to stretch 100% width. Try disabling boxed style and it should stay stickied.

    Strange that the CSS I posted didn’t work, it should work.

    Thread Starter rannesinc

    (@rannesinc)

    Ah, I see.

    I really don’t see much difference whether the boxed theme is on or off.

    What is the difference?

    Thanks.

    Theme Author Alexander Agnarson

    (@alxmedia)

    The sides don’t “stretch” out all the way on higher resolutions when using boxed layout. The page ends up inside a box, so that for example background images can be used.

    Thread Starter rannesinc

    (@rannesinc)

    Okay, I see. Thanks.

    I will stay with the unboxed setup for now so my menu stays in place.

    Hej do…!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Sticky menu’ is closed to new replies.