0

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

2 Answers 2

0

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
2
  • It's adding inline css on hover. which js file i should customize to control it Commented 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. Commented Jan 23, 2019 at 4:59
0

more details and example can help thanks!

answered Jan 30, 2020 at 18:12
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.