Remove normal menu, only display hamburger toggle
-
Good day folks,
my problem is that I only want to display the hamburger menu on my site while showing an alternative logo for mobile devices.
Any idea how to solve this?
Thanks very much!
The page I need help with: [log in to see the link]
-
Hello @norequests
Yes, you can display an alternative logo on mobile devices.
Here’s a screenshot of the setting.
And use the Menu Breakpoint option to display the Hamburger Icon.
I hope that helps.
Regards,
SumanHi Suman,
thanks for trying to help. I’m aware of the settings you are suggesting and I also want to use them but in the meantime I would like to only display the mobile hamburger toggle to open the menu. I don’t want to use the desktop menu at all, I want the hamburger menu also shown on desktop devices. Can you or someone else help me with that?
Thanks a lot!
Greetings,
Adam-
This reply was modified 6 years, 3 months ago by
norequests.
Hello @norequests
Yes, for this requirement you can set the Menu Breakpoint to the 2000px so that below that screen size you will see the Hamburger Menu.
I hope that helps.
Regards,
SumanHi Suman, thanks once again. Yes, it solves the problem with the hamburger menu but doesn’t help me maintaining the feature that allows me to use a different site-logo on mobile than on desktop.
Any idea about that?
Thanks.
Hello @norequests
To display an alternative logo on mobile devices.
Hereโs a screenshot of the setting.
I did provide the same previously, or am I missing something.
Looking forward to hearing from you!
Regards,
SumanHello Suman,
yes, unfortunately yes, you are.
If I set the menu breakpoint to 2000px in order to show the hamburger for devices with a screen width of up to 2000px than it is always the mobile LOGO that is shown from 1px to 2000px. Only above the width of 2000px will a desktop logo be shown which is not the desired effect. Does the above help to understand my case?
Hi @norequests,
Ya, I follow ya. I wouldn’t change that breakpoint. Just my preference.
For a pure CSS solution, you can use the following trick. Warning, the mobile logo will not be a link anymore. Might be able to do this better with JavaScript?
/* Let's Mix-up the Logo For Mobile */ @media screen and (max-width: 767.998px) { /* Hide the Main Logo */ .custom-logo { display: none; } /* Insert a different logo as the background. */ .site-logo-img { display: inline-block; background-image: url(https://balistreetphotographer.files.wordpress.com/2019/02/balistreetphotographer-logo-2-slashes-65.png?w=65&zoom=2); background-repeat: no-repeat; width: 65px; height: 65px; } }Tweak the breakpoint, image link (obviously), and dimensions for your case ๐
Good luck!
-
This reply was modified 6 years, 3 months ago by
mark l chaves. Reason: Clarification
Flawless! Thanks for jumping in.
Hello @norequests
And thanks @mlchaves for jumping in to help resolve his query.
Do let us know if there’s anything else we can help you with.
Regards,
SumanHi @norequests,
Coolness.
Hey, the link part was bugging me for the CSS solution. I don’t have this anti-pattern issue using the CSS-only solution with other themes.
So, I wrote-up the JavaScript solution. The JS respects the links since we have direct access to the DOM of course.
Full Demo on CodePen
https://codepen.io/marklchaves/pen/poJWYym?editors=0010
For what it’s worth lol.
And, you’re most welcome @brainstormteam (Suman).
Have an excellent weekend y’all ๐
-
This reply was modified 6 years, 3 months ago by
mark l chaves. Reason: typo
-
This reply was modified 6 years, 3 months ago by
The topic ‘Remove normal menu, only display hamburger toggle’ is closed to new replies.
