Hi all! Trying to switch my menu to show the hamburger menu on desktop - it shows on mobile by default but the only options in the theme editor are left, underneath, or center. Any ideas of what code I should enter to show the hamburger dropdown on desktops/computers? I’m using the Symmetry theme! https://themes.shopify.com/themes/symmetry/styles/beatnik
@sbar - can you please share your website link?
Hi - thanks for taking your time to reply! here is a link: https://wfg79srzy7x2x483-14978044.shopifypreview.com
@sbar - I checked it, but it is quite difficult to get it working on desktop using css as it needs combination of CSS as well as javascript working, you will need some expert developer or contact theme support.
Hi, thank you so much. I’ve seen this doable with over themes + the free themes - any idea on what java I should use? I can handle the CSS!
Yes!! ![]()
@KetanKumar yes! Any suggestions?
@sbar - bringing menu on desktop view is very easy, it can be done via css… after that when you click on 3 lines then menu drawer should appear like it appears in mobile and should get closed after ‘x’ button is clicked.
This part will need javascript.
It can be done by doing some code customization. please send me a personal message and we can discuss what you’d like
Do you have an idea of what java is needed?
I got the CSS down, but can I edit the current javascript or do I have to write something new? The current to enable/disable the mobile nav is:
$(document).on(‘click’, ‘.mobile-nav-toggle’, function (e) {
e.preventDefault();
if ($(‘body’).hasClass(‘enable-mobile-nav-transition’)) {
// hide nav
$(‘body’).removeClass(‘reveal-mobile-nav reveal-mobile-nav–revealed’);
setTimeout(function () {
$(‘body’).removeClass(‘enable-mobile-nav-transition’);
}, 750);
} else {
// show nav
theme.openMobileNav();
}
});
theme.openMobileNav = function () {
$(‘body’).addClass(‘enable-mobile-nav-transition’);
setTimeout(function () {
$(‘body’).addClass(‘reveal-mobile-nav’);
can you try this code
$(document).on('click', '.mobile-nav-toggle', function (e) {
e.preventDefault();
if ($('body').hasClass('enable-mobile-nav-transition')) {
// hide nav
$('body').removeClass('reveal-mobile-nav reveal-mobile-nav--revealed');
setTimeout(function () {
$('body').removeClass('enable-mobile-nav-transition');
}, 5000);
} else {
// show nav
theme.openMobileNav();
}
});
theme.openMobileNav = function () {
$('body').addClass('enable-mobile-nav-transition');
setTimeout(function () {
$('body').addClass('reveal-mobile-nav');
Thank you so much! but That unfortunately doesn’t work - unless my CSS is incorrect?
