In Magento 2 for the main menu, they dropdown with hover. How to change the dropdown on click instead of 'hover'.
 Rizwan Khan
 
 1,9692 gold badges20 silver badges43 bronze badges
 
 
 asked Jan 22, 2019 at 11:14
 
 
 
 Nayem323 
 
 7911 gold badge8 silver badges27 bronze badges
 
 2 Answers 2
Step 1 : You need to remove the hover css for submenu.
Step 2 : After that you can add toggle event in the JS file for sub-menu.
 answered Jan 22, 2019 at 11:56
 
 
 
 Amit Naraniwal 
 
 1,3081 gold badge11 silver badges20 bronze badges
 
 - 
 It's adding inline css on hover. which js file i should customize to control itNayem323– Nayem3232019年01月23日 04:16:40 +00:00Commented Jan 23, 2019 at 4:16
- 
 @RaselUddin No, create new custom css and custom js file in your theme and implement your code in these file.Amit Naraniwal– Amit Naraniwal2019年01月23日 04:59:57 +00:00Commented Jan 23, 2019 at 4:59
more details and example can help thanks!
Explore related questions
See similar questions with these tags.
default