For the ul part you should use this:
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
%3$s is a placeholder for the list items, so you shouldn’t change it to “Laptop” as you have done.
These are the parameters for the id and the class, that need to go together with items_wrap:
'menu_class' => 'menu_123',
'menu_id' => 'mno',
Why it works like this? Answer is here:
Related Posts:
- Programmatically add a Navigation menu and menu items
- Add ‘has_children’ class to parent li when modifying Walker_Nav_Menu
- Remove a menu item in menu
- How to count nav menu items?
- Exclude Private, Draft pages from Primary Nav when using custom menu
- Automatically remove trashed pages from nav menu
- Pulling Featured Images in to a WordPress Menu
- wp_nav_menu always falls back to a menu
- wp_get_nav_menu_items how to exclude sub level menu items?
- How to drag multiple menu items at once in WordPress?
- Customizing the a tag with Semantic UI
- wp_nav_menu() customized
- wp_get_nav_menu_items order doesn’t work
- Hide pages depending on role
- How to implement my own icons instead of using the svg icon system
- how to only add a top-level admin menu without it creating a sub-level-menu
- WordPress wp_nav_menu with a nav tag
- `start_el` depth argument in custom nav walker always evaluates to zero
- Programmatically set current-menu-item using wp_nav_menu
- WordPress Split Menu
- Strange behavor of wp_nav_menu by not appearing [closed]
- Keep parent page active
- Custom Admin Menu Order
- How to set classname for tag in wordpress menu?
- bootstrap-navwalker will not load
- Check if menu id = $specific_id – then insert specific
- How to insert link to the default post archive into a menu
- How to create this Custom Walker Menu
- create a 2 row menu in wordpress
- Get menu item by name or slug
- current-menu-item class is not added
- Change sub-menu contents of main menu
- creating a custom walker class
- How to modify wp-includes without messing my wordpress installation?
- Add Buddypress profile and messages link to WordPress menu [closed]
- Use wp_logout_url() in menu creation page
- Active Menu Highlighter with Subpages?
- How to change menu structure?
- Insert a div class inside wordpress menu
- Retrieve Menu name for nav_menu_item
- Wrapping link and .sub-menu with wp_nav_menu
- Edit the (automatic) HTML layout of nav menus
- How to make wordpress nav menu use post custom meta data
- Is it possible to make the heading on a page different text to the text of the menu item?
- How to Structure Pages and Subpages
- Add extra menu to theme
- Add custom path to url to specific pages
- CTA button that is only visible to some of my users
- How do add a menu with levels within page [closed]
- Hide menu item when users are logged in/out
- add another html tag after li element in wp_nav_menu
- How do I change/remove styling (top border) on main menu for active page and hovering (Avada Theme)
- How to add scroll IDs to WordPress menu anchors
- WP nav menu + Bootstrap, add role=”menu” to UL
- Display pictures instead of text in menus
- how to check if given page is active page
- how to set the link in wordpress such that on clicking it doesn’t open another page but go to the bottom of same page
- custom walker class for own menu?
- 2 item in a same menu pointing to 1 page
- Add a menu metabox to post edit page
- Setting or plugin for showing submenus horizontally under the main menu, and keep them after selection
- New wp menu menu styling
- (Mobile) Hamburger menu disappeared from a page (only one)
- Add div content to my already existing menu
- Hiding menu on specific pages
- Bootstrap Menu bar shows up a toggle in Desktop Mode
- For a menu custom link (without a link) a “#” is appended. Can this just be blank, i.e. NO link?
- sidebar navigation problem with child pages not all display.?
- How to point menu to my homepage
- save_post() on Menu Save
- code to add an extra selection to the menu editor
- Highlight inner post menu current item
- update_post_meta breaking wp_update_nav_menu_item
- Menu dropdown disapears behind slider
- Generate Submenu based on Parent Page using If Statement
- Building a menu from a large number of pages?
- how to change single post link
- Any simple way to show 10 previous pages by id to current page in links as a menu
- Accidental reverse order of menu items in one menu
- Pass $item->description to start_lvl
- Menu on responsive twentytwelve theme not working, strange url error
- Mobile Menu Not Working
- wp_nav_menu list children if on parent page but sibling if on sibling page
- Ubermenu cant handle my menu, how to deal with large number of menuitems?
- Programatically retreive page content from its template page
- Replace Menu Item with Logged in username
- Rogue current menu item class in wp_nav_menu()
- Use wp_nav_menu to dynamically generate child menus
- To Add Logout Button in Menu [duplicate]
- Add qtranslate language select box to menu [closed]
- Custom menus not showing
- ID of parent Menu
- Nav menu custom html:
- how to mage the submenu open on wordpress active page
- my theme automatically adds new pages to menu
- Add a page to a subscribers account
- Add featured posts to nav menu
- wp_get_nav_menu_items array not getting 3rd level children
- Unable to order my menu by dragging
- Main Menu Hover is Always White