Site logo

[Support request] How to place logo next to hamburger menu?

Home Forums Support [Support request] How to place logo next to hamburger menu?

Home Forums Support How to place logo next to hamburger menu?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2217914
    Max

    Hi i want to switch the shopping cart to the right en the logo next to the hamburger menu. How can i switch them from side?

    #2218033
    Ying
    Staff
    Customer Support

    Hi Max,

    Just to confirm, you want hamburger icon, logo, cart in this order?

    Do you want the logo to stay in the center of the header or next to the hamburger icon?

    #2218156
    Max

    Next to the hamburger icon

    #2218334
    David
    Staff
    Customer Support

    Hi there,

    remove the CSS you have so far and:

    1. Add this CSS:

    #mobile-header .menu-toggle {
        order: -1;
    }

    2. Customizer > Layout > Primary Navigation – switch to Mobile Preview and set the Menu Item Width to say 20px.

    #2220551
    Max

    It doesnt work yet so

    From left to right i want
    Hamburger icon
    Logo
    Shopping cart

    #2220632
    Leo
    Staff
    Customer Support

    Remove David’s CSS here:
    https://generatepress.com/forums/topic/how-to-place-logo-next-to-hamburger-menu/#post-2218334

    Then add:

    #mobile-header.mobile-header-navigation.has-menu-bar-items .mobile-header-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    #mobile-header.has-menu-bar-items button.menu-toggle {
        padding-left: 20px;
    }
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.