cancel
Showing results for 
Search instead for 
Did you mean: 

Hamburger mobile menu not at all showing up magento ver 2.4.5

Hamburger mobile menu not at all showing up magento ver 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

1 REPLY 1

Re: Hamburger mobile menu not at all showing up magento ver 2.4.5

Hello @tmpawar66gd9cb 

 

Please follow the steps below:

  1. Please check your CSS for both the desktop and mobile.
  2. Open menu.js file. (path: /lib/web/mage/)
    1. Please find _toggleMobileMode: function ()
  1. In this function, please find this line: 'click .ui-menu-item:has(a)': function (event) {
  2. 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');
        }
    }
  3. Please run the following commands:
    1. php bin/magento s:up
    2. php bin/magento s:d:c
    3. php bin/magento s:s:d -f
    4. 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