[Update] Solution found:
I was looking for 'items_wrap' => '<ul id="%1$s" class="%2$s" role="menu" >%3$s</ul>'
<?php
wp_nav_menu( array(
'menu' => 'menu',
'theme_location' => 'menu',
'items_wrap' => '<ul id="%1$s" class="%2$s" role="menu" >%3$s</ul>',
'depth' => 0,
'container' => '',
'menu_class' => 'dropdown-menu',
'fallback_cb' => 'wp_bootstrap_navwalker::fallback',
'walker' => new wp_bootstrap_navwalker())
);
?>
Related Posts:
- adding some custom html code to the wp_nav_menu function
- Multi Level Bootstrap Navigation Menu in WordPress
- How do I add the data-toggle=”modal” data-target=”#myModal” attribures to a WP Nav bar?
- Bootstrap drop down menu with wp_nav_menu
- wordpress nav menu using twitter bootstrap
- HTML Bootstrap navigation menu to WordPress menu using wp_nav_menu
- Output the aria-labelledby parameter for a nav menu child
- Add Bootstrap dropdown class to a nav menu
- Nav walker, bootstrap: Display 3rd level items under 2nd level
- Make compatible custom menu widget for Twitter Bootstrap
- Loop through Navbar, Output Icons
- How can I remove data-target=”#” from bootstrap dropdown menu?
- Make menu bootstrap compatible
- Main Menu and Sub Menu Items for Footer
- How to add class to and childs of sidebar widget – WordPress
- How to have two menus using Bootstrap nav walker?
- Side Menu Icon Expandable
- WordPress Walker – Group two items?
- Sticky Header in WordPress using BootstrapWP theme [closed]
- WordPress + Bootstrap [closed]
- wp_nav_menu not displaying the right way
- Bootstrap button menu on wordpress
- wp_get_archives doesn’t take effect from css or html
- Make two bootstrap menus collapse into one dropdown
- Responsive menu on genesis theme [closed]
- Bootstrap menu – make menu entries with submenu not clickable
- Bootstrap Menu bar shows up a toggle in Desktop Mode
- WordPress + Bootstrap: Replace primary navigation menu on mobile?
- Stuck while adding bootstrap navwalker class
- How to use Bootstrap Navbar in wordpress Nav Menu
- Navbar is hidden behind carousel when using wp-boostrap-navwalker
- How to create a mobile menu full screen overlay using Understraps Bootstrap 4 theme
- Bootstrap Nav Walker Sub Menu Image
- Change menu for mobile
- How to change navwalker’s dropdown mark-up?
- Bootstrap navbar responsiveness on WordPress theme menu not working
- My WordPress menu based on Twitter bootstrap creates menu-item and not page-item
- Broken drop down menu using Bootstrap and navwalker class
- nav tag wrapping around dropdown
- Convert a custom bootsrap based menu to wordpress nav walker
- WordPress nav Walker – Bootstrap 5.2.3 – submenu not opening
- Nav walker bootstrap: Display 3rd level and 4th level in dropdown menu
- Split up wp_nav_menu with custom walker
- wp_get_nav_menu_items() not working with slug
- Error “Trying to get property of non-object” with Custom Walker for wp_nav_menu
- Add Class to Specific Link in Custom Menu
- how to create a menu with all sub categories?
- How to avoid wp_nav_menu() ID conflict?
- Remove unusable metaboxes in nav menu management screen
- Highlight parent menu item when child is not in menu
- Add Commas Between Menu Items?
- Allow html tags in WordPress Custom Menus Description Field
- Add custom attribute to menu item link using Filter
- Remove nav menu or menu item
- wp_nav_menu() loses ‘current-menu-*’ classes on single product page within category
- How is custom menu hierarchy output handled?
- Creating new dynamic menu including BP links [closed]
- Building a Sub-menu: Display Parent Category/Page’s Children When Viewing Children
- List parent item with all child item on child pages
- Getting stripos error when trying to add menu classes
- Hide menu items for visitors and filter based on role
- Add a “has-children” class to body tag?
- Custom Nav Walker sub-menu HTML construct
- How to remove trailing tags from wp_nav_menu walker
- Custom Walker for Walker_Nav_Menu
- Different side menu on each page
- How to scroll item in the Menu setting effectively?
- Building custom API and using wp_get_nav_menu_items to get menu items. Only works when logged in, returns nothing when I’m not
- How to display dynamic content in start_lvl function
- Partial refresh of menu in customizer not working?
- Appearance -> Menu -> Menu Structure : Add plain HTML code as an element
- Add custom -element to wp_nav_menu
- Disable automatig SVG tag from menu
- Replace menu permalink/hyperlink with only menu name/slug
- wp_nav_menu add some element to container
- Different fields available for different sites when when customising Menu’s
- get_search_form() doesn’t appear to take parameter into account
- Custom menu deletes itself
- Find out if a page has no parent
- Header style different on home and remaining pages
- Pass GET params to URL from a main menu item
- show different admin menu to different user roles
- How to include a third level with wp_get_nav_menu_items function
- Schedule Page to Menu [duplicate]
- Can’t include Language switch in Nav Menu
- Using website header, menu and footer on WordPress blog
- Limit the menu child levels under “admin > appearance > menus”
- Bulk Custom Menu and Wp-Ecommerce
- Can only get one of two custom menus to display
- Show Menu from one WordPress install in another WordPress install
- Check if Page Already Exists in Menu
- Reuse a custom WordPress menu on another WordPress website
- How to dynamically populate a dropdown
- wp_nav_menu not working [closed]
- Is this format possible with a custom Nav Walker class?
- Default WordPress menu content
- Add code to WordPress menu items by class
- how do i change the text under a navigation menu [closed]
- How do you add a around the second level of a Menu?
- How should I build a custom menu walker for this setup?