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
- Add Javascript to WordPress Menu
- Add custom menu item using wp_nav_menu_items filter
- Add separator to admin submenu
- How to get a different mobile menu than desktop menu in the twentytwelve child theme
- HTML Bootstrap navigation menu to WordPress menu using wp_nav_menu
- Bar separated navigation by extending Walker_Nav_Menu
- How to style current page menu item when using a walker
- Nav Walker current menu item not displaying
- Navigation (wp_nav_menu) refuses to nest within parent element
- Add custom menu item metabox in Navigation Settings
- Hide Menu Unless Logged In
- Highlight another nav item
- How to change theme header to support multiple nav menus?
- Highlight current post ancestor parent menu items
- walker – 0 level on submenu formatting
- CSS_Menu_Walker not showing on mobile view?
- Remove nav menu item by script
- Get menus created with menu editor?
- How to I know the class or ID of my theme?
- Adding sub-menu item makes parent item unclickable
- Missunderstanding of WordPress menus
- How to add schema.org SiteNavigationElement and property URL to navbar?
- Theme Location empty
- Give Children Unique ID’s
- how to remove description from menu buttons?
- Remove a class from a using Walker
- Make two bootstrap menus collapse into one dropdown
- Replace anchor tag with span tag
- WordPress nav_menu items from another menu appearing
- How to create a mobile menu full screen overlay using Understraps Bootstrap 4 theme
- Unable to remove page from primary menu
- Show navigation header menu by post and categery
- How to Use Default Auto-Generated Menu?
- How to sort a sub-menu, generated with get_pages(), by the page order instead of alphabetically?
- wp-nav menu with custom walker , how to remove a tag if it has any submenu
- Two questions about CSSing inside the menus
- Building Menus with the latest posts included
- How to add drop down sub menu from database fields in the particular menu slug
- wordpress superfish dropdown menu
- wp_nav_menu changed to wp_page_menu
- Keeping my Sub Menu open when hovering on its list items
- WordPress “add to menu” button not working
- Add acf custom fields so sub item in menus
- change breakpoint widths for divi theme tablet view