Go to Dashboard->Templates and add or update existing template for mega menu.
Then go to Appareance->Menu and add a mega menu item under a menu and make sure this is selected primary menu from the menu display location