Filter 'wp_nav_menu_args'
.
add_filter( 'wp_nav_menu_args', 'wpse_79901_nav_menu' );
function wpse_79901_nav_menu( $args )
{
$args['items_wrap'] = '<ul class="nav nav-pills">%3$s</ul>';
return $args;
}
Related Posts:
- Multi Level Bootstrap Navigation Menu in WordPress
- HTML Bootstrap navigation menu to WordPress menu using wp_nav_menu
- Add Bootstrap dropdown class to a nav menu
- Prev / Next menu item
- How to add class to and childs of sidebar widget – WordPress
- How to have two menus using Bootstrap nav walker?
- Make two bootstrap menus collapse into one dropdown
- How to avoid the and which added when custon menu widget is used
- WordPress + Bootstrap: Replace primary navigation menu on mobile?
- Navbar is hidden behind carousel when using wp-boostrap-navwalker
- Bootstrap Nav Walker Sub Menu Image
- How to modify navigation menu of the “My Account” page in WooCommerce
- Custom ID for certain menu item?
- Add data-icon input to WordPress custom menu links
- Show current navigation path from menu
- How do I add the data-toggle=”modal” data-target=”#myModal” attribures to a WP Nav bar?
- wordpress nav menu using twitter bootstrap
- How to highlight the right item in the navbar
- Which settings/options are saved on a theme-basis and how does this affect theme-switching?
- Add class to active top level (grandparent) menu item
- How to get Menu Navigation Labels to output HTML
- custom menu not found
- wp_nav_menu doesn’t generate parent/ancestor classes
- How to add text before WordPress menu item href
- Nav walker, bootstrap: Display 3rd level items under 2nd level
- Add an extra field to the navigation menu box?
- How do i style the current menu anchor link’s parent anchor link? [closed]
- Does the menu item ID ever change?
- Hide and show menu subpages
- BuddyPress – How to add logout in nav menu
- How to add a parameter to links in the nav menu?
- Nav Walker current menu item not displaying
- Page-Linking Structure
- Navigation (wp_nav_menu) refuses to nest within parent element
- Make menu bootstrap compatible
- Main Menu and Sub Menu Items for Footer
- Add custom menu item metabox in Navigation Settings
- Get admin menu link
- wp_nav_menu including Skype URL
- Hide Menu Unless Logged In
- How to change theme header to support multiple nav menus?
- Making a navigation header menu with bulma, need some advice
- How to have the Header show different content on different pages?
- walker – 0 level on submenu formatting
- Determine the last child of the parent menu WP Nav Walker
- Navigation doesn’t render when wp is hosted
- wp_nav_menu() doesn’t work
- Remove nav menu item by script
- Does is_child() exist in wp 3.5.1?
- Get menus created with menu editor?
- Add span in top menu item with nested itens
- How to create a menu with pages and post categories?
- remove specific classes from menu items
- Missunderstanding of WordPress menus
- How to add schema.org SiteNavigationElement and property URL to navbar?
- Sticky menu for WP custom menubars
- how to remove description from menu buttons?
- set certain item in nav walker to active when on archive pages or singles
- wp_nav_menu() | Outputting my own custom code using built in features
- Remove a class from a using Walker
- The cart, checkout, and shop links not getting removed
- Switch an entire nav menu if user is logged in
- wp_bootstrap_navwalker Fatal Error
- WordPress functions.php does not affect the theme menus
- Display Menu Navigation Label
- Menu is not displaying on the site navigation [closed]
- Wp Nav Menu div containers
- Simple form to add custom links to menu?
- Costum walker with sub menu item count
- Catagorized hierarchy menu for PAGES!
- Updated WordPress, now Navigation is Messed Up
- How do I add 3rd level of dropdowns to wp_nav_menu array?
- Possible to append class to nav menu added to widget area?
- need help in wordpress navbar setup
- Can I now add a class in the anchor of my menu item with WordPress 5.4?
- Multi-Level Nav Bar
- Change markup for just 2nd list element in custom Walker menu
- Additional CSS for the nav menu
- display cart information within li of cart menu item
- Add data-track to links in menu
- Is it possible to seperate wordpress menu by different div?
- How to add odd and even classes to all nav links through walker?
- Output sort number in wp menu list item?
- Add newsletter signup element to navigation bar
- Check in walker if current page is descendant
- wp_nav_menu not selecting teh correct menu
- Active page link not getting class assigned
- Highlighting Main Navigation Menu With Two or More Class Matches
- Customize Walker_nav_menu to show posts if item is category
- Menu not always using correct link
- Where these arguments are defined?
- Remove from wp_nav_menu() wordpress
- Add custom ID to wp_nav_menu list items
- Show All Children of WordPress Menu
- How to make an anchored page in a navigation menu tab
- Creating an accordion style menu
- nav tag wrapping around dropdown
- Two Homes In Navigation Menu
- How to set menu Display location
- WordPress nav Walker – Bootstrap 5.2.3 – submenu not opening