-2

Mega menu shows on loading in frontend magento 2 i want to hide on loading

enter image description here

0

try this way...

<ul style="display:none"></ul>
  • i will try and update you @rakesh – divya sekar Mar 30 '19 at 7:11
  • it hides a entire nav bar @rakesh – divya sekar Mar 30 '19 at 7:15
  • @divyasekar i have updated my answer – Rakesh Donga Mar 30 '19 at 7:20
  • i will check it and tell u – divya sekar Mar 30 '19 at 7:22
  • your previous answer worked for me @rakesh – divya sekar Mar 30 '19 at 8:07
0

You can hide it using CSS. Add this in your custom CSS and this will hide the menu during onload event of the body:

ul.dropdown-menu.fullwidth.ui-menu.ui-widget.ui-widget-content.ui-corner-all {
display:none !important;
}
  • i will try and update you @magefms – divya sekar Mar 30 '19 at 7:11
  • okay I hope it will work for you. – fmsthird Mar 30 '19 at 7:23

Not the answer you're looking for? Browse other questions tagged or ask your own question.