Use ‘nav’ element as the menu container
Add the following code to your themes functions.php page to change the <div> element to a <nav> element for your menus.
1 2 3 4 5 |
function megamenu_use_nav_container( $defaults, $menu_id, $current_theme_location ) { $defaults['container'] = 'nav'; return $defaults; } add_filter( "megamenu_nav_menu_args", "megamenu_use_nav_container", 10, 3 ); |