Site logo

Archived topic

Hambuger menu top bar

38 replies · Started by Andrew on July 12, 2021

Viewing posts 16–30 of 39

Wow - almost there!
So add this CSS:

@media(max-width: 768px) {
     /* Move hamburger above logo */
    .has-inline-mobile-toggle .mobile-menu-control-wrapper {
        order: -1;
    }
    /* Force logo full width */
    .site-logo, .site-logo img {
        width: 100%;
    }
    /* float icons over menu bar */
    .mobile-contact-icons {
        position: absolute;
        top: 20px;
        z-index: 1;
    }
}

Then the <div> you hooked in the mobile icons - give it another class of: mobile-contact-icons

Thanks for the Code David, would I still need all of this? I made some changes with the hooks and have the icons above the header already, and the logo looks good. I think all that I need as of now is the hambuger uptop now, and Ill hide the search icon with the same media query. Please take a look how it is now before I add the code and your feedback is greatly appreciated!. After this I should be all set and I will quit bugging you lol.

I have just added the following for now...

@media(max-width: 768px) {
/* Move hamburger above logo */
.has-inline-mobile-toggle .mobile-menu-control-wrapper {
order: -1;
}
}

It as this part of the i provided:

/* float icons over menu bar */
.mobile-contact-icons {
    position: absolute;
    top: 20px;
    z-index: 1;
}

And:

Then the <div> you hooked in the mobile icons – give it another class of: mobile-contact-icons

That will move the hamburger up so its kinda inline with the phone/chat icons

Awesome works great! Also I've noticed something going on with the menu on mobile I can never click on the bottom contact is when in portrait view?

Is their a way I can upload screen recording to demonstrate, I usually have to scroll twice in order to get it to respond otherwise it automatically scrolls back up to the top

Try adding some bottom padding to the off canvas:

#generate-slideout-menu {
    padding-bottom: 100px;
}

worked great thank you.

Glad to hear that.

Hi David, hope all is well. I have one more question, what would be the easiest way to fix the mobile header, if you view the site @768px the hambuger icon and search icon are to the right of the logo, Im trying to get it to look like how it would on a phone at this point, if you make it a bit smaller(716px) you will see the correct look im trying to achieve

Im trying to eliminate the hamburger menu and search icon from being displayed to the left of the logo, David helped with moving up above,for mobile, and I was trying to trigger it earlier to look how it does on mobile. Below is the code he gave me which works great. Hopefully that make sense, Im basically just trying to eliminate the hambuger to the left, and search to go directly above

https://drive.google.com/drive/folders/1vdwLSHBRbsxsILUjtUPq3ltZLWrRlN7p?usp=sharing

@media(max-width: 768px) {
/* Move hamburger above logo */
.has-inline-mobile-toggle .mobile-menu-control-wrapper {
order: -1;
}
/* Force logo full width */
.site-logo, .site-logo img {
width: 100%;
}
/* float icons over menu bar */
.mobile-contact-icons {
position: absolute;
top: 20px;
z-index: 1;
}
}

https://drive.google.com/drive/folders/1vdwLSHBRbsxsILUjtUPq3ltZLWrRlN7p?usp=sharing

Fixed my apologies :]

So it's working now?

Let me know if you need further assistance :)

Sort of, for the above header hook I'm using I can remove the class hide-on-tablet, But Im having a hard time getting the hambuger and search bar to float above the logo like it does on mobile, I added two more screenshots to the link I shared and removed the old ones

This archived topic is closed to new replies.