[Resolved] Desktop & Mobile Identical menu – GeneratePress

Home Forums Support [Resolved] Desktop & Mobile Identical menu – GeneratePress

Home Forums Support Desktop & Mobile Identical menu – GeneratePress

Viewing 15 posts - 16 through 30 (of 37 total)
  • Author
    Posts
  • #1200827
    Kir29 LLC

    Wait. The scroll bar problem doesn’t seem to be happening again. Let me observe it and I’ll let you know if it happens again.

    #1200837
    Kir29 LLC

    Another question: Our UX team is not 100% sure about the search navigation so, if UX team finally decides to disable navigation search, what would be the steps for us to have menu in the left corner and logo in the right corner (same for desktop/tablet/mobile)?

    Thank you and sorry about the back and forward.

    #1201093
    Leo
    Staff
    Customer Support

    what would be the steps for us to have menu in the left corner and logo in the right corner (same for desktop/tablet/mobile)?

    Just activate the mobile header option and we can provide the CSS to swap the position of logo and menu:
    https://docs.generatepress.com/article/mobile-header/

    #1201273
    Kir29 LLC

    Hi again,

    This is a bit confusing since I thought we were using already the mobile header same for desktop/tablet/mobile (we have Mobile Header = ON and Mobile Menu Breakpoint = 4000 px).

    Am I right to say that we would only need to deactivate search navigation and install your new CSS to swap the position of logo and menu?

    Please advise.

    Thanks

    #1201626
    David
    Staff
    Customer Support

    1. Disable the Search.
    2. Remove this CSS:

    .site-logo.mobile-header-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    3. Add this CSS:

    .site-logo.mobile-header-logo {
        margin-right: unset !important;
    }
    #1201824
    Kir29 LLC

    Hi again,

    Should we also remove this CSS code if we disable search navigation?

    .navigation-search.nav-search-active {
    left: unset;
    max-width: 300px;
    }

    Thanks

    #1201831
    David
    Staff
    Customer Support

    Oops – Yep that too can go if the Search is disabled 🙂

    #1201851
    Kir29 LLC

    Excellent.

    I think all works perfectly now. You can check our Staging area: http://95b.ce2.myftpupload.com/).

    Let us review it again with the UX team and get back to you.

    Thank you for the help so far

    #1201857
    David
    Staff
    Customer Support

    Cool may want to change this:

    .site-logo.mobile-header-logo {
        margin-right: unset !important;
    }

    to:

    .site-logo.mobile-header-logo {
        margin-right: 20px !important;
    }

    This will stop the logo from touching the edge of the screen. Adjust the 20px to suit.

    #1201860
    Kir29 LLC

    Actually we were about to write about that.

    We changed is but the alignment in mobile/tablet of the menu and the logo is not proporcional. Logo seems to be in the far right but menu is not proportionally the same.

    Could you please advise?

    #1202150
    Tom
    Lead Developer
    Lead Developer

    The menu toggle is 51px from the left, so you can do this:

    .site-logo.mobile-header-logo {
        margin-right: 51px;
    }
    #1202266
    Kir29 LLC

    Hi again,

    We tried that but UX team is not really buying into it since it looks good on desktop but it looks a bit like a waste of space on tabled/mobile.

    This is the CSS code currently used for the correct logo separation (25px from the right end) that we would like you to use as a reference to suggest hot to move the menu to the equivalent position:

    .site-logo.mobile-header-logo {
    margin-right: 25px !important;
    }

    Is there any way we could the logo as it was (far right) and move the menu instead (aligning the menu it proportionally to the far left)?

    Thanks

    #1202282
    Kir29 LLC

    We would also like to incrase proportion / size of the hamburger menu icon. Is there any way we could do that without modifying the Menu Item Width?

    Thanks

    #1205776
    David
    Staff
    Customer Support

    Replace this CSS:

    .main-navigation.has-branding .menu-toggle {
        order: -1 !important;
        margin-right: auto;
    }

    With this:

    .main-navigation.has-branding .menu-toggle {
        order: -1 !important;
        margin-right: auto;
        padding-left: 25px;
        padding-right: 25px;
        font-size: 24px;
    }

    You can adjust the left/right padding for the alignment, and increase the font-size to make the toggle larger.

    #1206452
    Kir29 LLC

    Hi again,

    It’s looking much better now with this CSS code:

    .site-logo.mobile-header-logo {
    margin-right: 25px !important;
    }

    .main-navigation.has-branding .menu-toggle {
    order: -1 !important;
    margin-right: auto;
    padding-left: 25px;
    padding-right: 25px;
    font-size: 27px;
    }

    Changing the value of ‘padding-right: 25px;’ is not doing anything in the menu nor in the logo. Could you advise why?

    Thank you again for the help

Viewing 15 posts - 16 through 30 (of 37 total)
  • You must be logged in to reply to this topic.