For one of my projects I'm trying to add a nav_menu to my WP theme. It should work as a quick menu (sidebar). The only problem remaining: How do I add a role="menu" to the < ul >?
<?php
wp_nav_menu( array(
'menu' => 'menu',
'theme_location' => 'menu',
'depth' => 0,
'container' => '',
'menu_class' => 'dropdown-menu',
'fallback_cb' => 'wp_bootstrap_navwalker::fallback',
'walker' => new wp_bootstrap_navwalker())
);
?>
I'm looking for the output <ul class="dropdown-menu" role="menu">
anyone ?