See if I correctly understand your meaning.
For argument details, you may wish to refer to wp_nav_menu()
When you call the menu, you may add the following arguments:
wp_nav_menu(array(
'theme_location' => 'primary',
'container' => 'div', // default is div anyway, you set it false because you want to add ID, right?
'container_id' => 'container_id', // container id here, css ID for container above
// comment out if you need
// 'menu_class' => 'menu-class-here', // menu class
// 'menu_id' => 'menu-id-here',
'fallback_cb' => false,
'depth' => 5
));
Related Posts:
- How to buid wordpress menu with auto width sub-menu items in dropdown menu without any items sharing one line [closed]
- Multi Level Bootstrap Navigation Menu in WordPress
- Show only 2nd level of navigation depending on active navigation
- How to move parent li to end of child ul
- Custom Nav Walker sub-menu HTML construct
- Adding different classes to anchor in navigation menu
- how to automatically generate hierarchical menus from hierarchy of pages?
- How do i style the current menu anchor link’s parent anchor link? [closed]
- How to display dynamic content in start_lvl function
- How to insert custom code into wp_nav_menu structure?
- Menus like a CMS
- How to have custom menu Item CSS Classes for wp_page_menu() or wp_list_pages()
- How to add a submenu toggle button inside all “li” elements that have a submenu?
- Check if menu id = $specific_id – then insert specific
- wp_nav_menu() with multiple Class
- Grey out nav buttons unless is_user_logged_in()
- Trying to Create Menu in WordPress
- How do I add recent posts to the menu?
- Automatically list top level menu item child pages
- Static page to one page- menu inactive items highlighted
- Check if menu_item has children or has parent
- Switch from hover to click on Twenty Twelve Menu
- How Do I Add Images To Main Navigation Menu
- Add a submenu to wp_nav_menu
- display menu as table layout
- Menu Arrow for Child Element
- How to add css to single navigation text? [closed]
- Adding toggle-able element after menu item
- How to Add support for sub-menu item description in wordpress?
- Odd spacing in Navigation Bar [closed]
- Controlling sub-menu within sub-menu
- Is there any way to change the CSS class applied to 2nd level sub menu ul’s?
- Add Different Class on Different Ul in twenty-twentyone theme
- Change hover to onclick on menu
- Add/remove image from navigation bar
- Bootstrap Theme Migrated to WordPress
- WordPress + Bootstrap: Replace primary navigation menu on mobile?
- How can I click the parent menu then redirect to a special URL?
- Creating navigation out of specific IDs and their children?
- Where to place a svg chevron down in my custom walker?
- Additional CSS for the nav menu
- Add href to tag in nav menu for mobile
- Disable Top Nav Bar on Mobile
- WordPress menu issue after update
- Adding span to a particular text in an menu item
- Conditional Nav Menu Inside Nav Menu Across Multisite Sites
- Always show wordpress submenu on responsive header menu
- Show Child of Parent Page including all other parents
- Active page link not getting class assigned
- nav_menu: how to force a subpage switching on the parent menu
- individual images as navigation design TwentyTen
- How to add or remove borders in navigation menu?
- How was this menu system created?
- Display sub menus as separate lists
- Site navigation sits unstyled for a second on page reload [closed]
- Give custom class names to WP nav sub-menu
- Nav walker bootstrap: Display 3rd level and 4th level in dropdown menu
- wp_nav_menu parent in submenu
- How to add toggle-able DOM element after nav menu item?
- Add active class to wp_nav_menu
- Output existing wp_nav_menu with a custom walker
- Getting parent object_id of child menu items in WordPress menu
- Navigation bar is on live site but nothing under menu so can’t add in a page
- Incorrect Behavior on WordPress Main Menu
- How to access into the description of a sub menu
- Generate Submenu based on Parent Page using If Statement
- how to split vertical menu into two columns using walker nav menu
- How to get rid of the bottom line in the navigation menu via CSS file?
- Active Current Menu – Adding class to child theme
- Sub-Items Not Visible in Navigation
- Making my main menu a hamburger menu on all platforms
- display cart information within li of cart menu item
- Display specific main Sub Nav on Woocommerce product pages
- Product categories are mixed when creating menu
- Importing large product categories into wordpress menu
- Displaying a part of a menu containing the page the user is currently viewing and only it’s immediate children
- How can I create this menu with wp_nav_menu()?
- Building a menu from a large number of pages?
- Unable to remove page from primary menu
- Get Sub-Menu Dropdown to Show Over Page Content
- Problem with positioning of the menu in custom WP style
- I can’t correctly display menu
- how to configure this type of menu
- Show thumbnail to category items in wp_nav_menu(), how?
- How can I make menu items into two seperate buttons with different functions?
- Add data-track to links in menu
- how to create pages and link them to a menu
- Responsive Dropdown Menu
- How to select particular menu position in wordpress?
- Header lists posts instead of showing primary nav menu
- Show navigation header menu by post and categery
- Links in new menu don’t work
- 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
- How to separate sub-menu output and keep associated with parent
- How to Use Default Auto-Generated Menu?
- Has there been any improvements to wp’s menu handling?
- How to sort a sub-menu, generated with get_pages(), by the page order instead of alphabetically?