[Resolved] Menu for mobile pushing page down

Home Forums Support [Resolved] Menu for mobile pushing page down

Home Forums Support Menu for mobile pushing page down

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1542232
    Raul

    Hi
    If I click on the hamburger icon to open the menu, this will open but pushing the webpage down.
    I would like the menu to open hovering the webpage without pushing it down. Isa that not possible?
    I’m using just the customizer of GeneratePress and navigation as header. Nothing else.

    Thank you ad best wishes
    Raul

    #1542499
    David
    Staff
    Customer Support

    Hi there,

    try adding this CSS:

    #mobile-header.toggled .main-nav > ul {
        position: fixed;
        width: 100%;
        background-color: #fff;
    }
    #1544145
    Raul

    Hi David,
    That works, indeed. Thank you very much.
    Best Regards,
    Raul

    #1544442
    David
    Staff
    Customer Support

    You’re welcome

    #2317913
    Joel

    Sorry to necro an old thread, but this doesn’t seem to work anymore.

    Any chance you could add updated code to work with the latest version?

    #2317917
    Ying
    Staff
    Customer Support

    Hi Joel,

    Can you open a new topic and link us to your site?

    #2317926
    Joel

    Hi Ying, the site I’m working on is https://dev.lcsnetworks.com/

    Thanks,

    #2317930
    Ying
    Staff
    Customer Support

    Try this CSS:

    .main-navigation.toggled .main-nav>ul {
        position: absolute;
        width: 100%;
        top: 1.5em;
    }
    
    .has-inline-mobile-toggle #site-navigation.toggled {
        margin-top: 0;
    }
    #2317933
    Joel

    Hooray, it works! πŸŽ‰πŸŽ‰πŸŽ‰

    Thank you for the quick response Ying.

    Also, what an awesome and light weight theme! πŸ™‚

    EDIT: Whoops! I spoke to soon.

    It works in the mobile version of Firefox, but not in Safari on IOS.

    Is there some different CSS being applied on Apple?

    It was a PEBKAC error. Forgot to save! Whoops. Everything works great, this is a perfect solution thanks!

    #2317936
    Ying
    Staff
    Customer Support

    You are welcome πŸ™‚

    Glad you are happy with our theme!

    #2317939
    Joel

    Spoke to soon! It works in the mobile version of the desktop browser, but not in any browser on my iPhone.

    I’m using a private browsing window.

    Tested in Firefox Focus on IOS as well.

    #2317940
    Ying
    Staff
    Customer Support

    Did you clear cache after the CSS has been added?

    #2317942
    Joel

    Oh my mistake. It wasn’t the cache – rather, my changes didn’t save for some reason🀦

    It works! My PEBKAC error of the day πŸ˜‚

    Thank you again!

    #2317947
    Ying
    Staff
    Customer Support

    Lol you are welcome πŸ™‚

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