- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2022
04:32 AM
12-23-2022
04:32 AM
Hamburger menu not showing in M2 Version 2.4.5
Hello Team,
Hamburger menu not showing up in magento 2.4.5. Please le me know any idea on this.
Deskmenu is working fine but mobile menu is not coming
Labels:
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2023
05:39 AM
03-30-2023
05:39 AM
Re: Hamburger menu not showing in M2 Version 2.4.5
Hello @tmpawar66gd9cb
Please follow the steps below:
- Please check your CSS for both the desktop and mobile.
- Open menu.js file. (path: /lib/web/mage/)
- Please find _toggleMobileMode: function ()
- In this function, please find this line: 'click .ui-menu-item:has(a)': function (event) {
- Please replace that code with the following code:
'click .ui-menu-item:has(a)': function (event) { var target; event.preventDefault(); target = $(event.target).closest('.ui-menu-item'); if (target.has('.ui-menu').length) { this.expand(event); } target.get(0).scrollIntoView(); if (!target.hasClass('level-top') || !target.has('.ui-menu').length) { window.location.href = target.find('> a').attr('href'); } }
- Please run the following commands:
- php bin/magento s:up
- php bin/magento s:d:c
- php bin/magento s:s:d -f
- php bin/magento c:f
If you find our reply helpful, please give us kudos.
A Leading Magento Development Agency That Delivers Powerful Results, Innovation, and Secure Digital Transformation.
WebDesk Solution Support Team
Get a Free Quote | | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789
Thank You,
WebDesk Solution Support Team
Get a Free Quote | Email | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789
Location: 150 King St. W. Toronto, ON M5H 1J9