Site logo

[Support request] Mobile Hamburger Menu

Home Forums Support [Support request] Mobile Hamburger Menu

Home Forums Support Mobile Hamburger Menu

Viewing 3 posts - 16 through 18 (of 18 total)
  • Author
    Posts
  • #2597734
    David
    Staff
    Customer Support

    If thats the case then the script isn’t detecting the header is no longer sticky. But it was never designed for this kind of thing.
    If you want just the Hamburger to be the only sticky element then you will need to disable the mobile headers sticky option. And then we can provide some CSS to position: fix the hamburger. But it will be fixed scrolling down or up.

    Let me know

    #2597865
    Paul

    can you please help me with the css part.

    #2598169
    David
    Staff
    Customer Support

    Ok

    1. in Customizer > Layout > Header –> Mobile Header, disable the sticky header option.
    2. remove the CSS i provided here:
    https://generatepress.com/forums/topic/mobile-hamburger-menu/#post-2594371

    3. Add this instead:

    #mobile-header {
        padding-right: 70px;
    }
    #mobile-header .menu-toggle {
        padding: 0;
        margin-right: 10px;
        width: 50px;
        height: 50px;
        display: block;
        background-color: #f00;
        border-radius: 50px;
        position: fixed;
        right: 0;
        top: 0;
    }
    
    #mobile-header .menu-toggle .icon-menu-bars {
        position: relative;
        top: -3px;
    }
Viewing 3 posts - 16 through 18 (of 18 total)
  • You must be logged in to reply to this topic.