This topic is: resolved

main-menu-wrapper

  • AvatarAstralJapan
    Participant
    Post count: 4
    # 3 years, 11 months ago

    Hi there,

    The the nav menu (inside the header) is fixed when the screen is scrolled.
    Seems like a combination of css and js.
    I wanted to make the logo also fixed when scrolled.

    Can you help me edit the codes?

    Thank you.

    AuthorAuthor
    Keymaster
    Post count: 26666
    # 3 years, 11 months ago

    Hi there

    To make the full header sticky, you need to change a line in init.js file inside js folder of template. Change:
    $(".main-menu-wrapper").sticky({topSpacing:0});

    TO:

    $(".site-header").sticky({topSpacing:0});

    Thanks

    AvatarAstralJapan
    Participant
    Post count: 4
    # 3 years, 11 months ago

    Thanks again!
    Had to create the .is-sticky .site-header also, and is working fine.

    AuthorAuthor
    Keymaster
    Post count: 26666
    # 3 years, 11 months ago

    That’s great! Thanks so much
    Would you mind giving a 5 star rating to our theme at your ThemeForest’s Downloads page? That would be very appreciable. Instructions to do that: http://cl.ly/image/1p2U0N0H0a0E

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.