Make sure your menu does setup correctly in that location in Appearance / Menus, unless it wont display that class. After you set the theme location to Primary Menu, it should work fine. No idea why, guess its a bug in WordPress.
Also fix the typo: 'container' => false
Related Posts:
- How to Hard Code Custom menu items
- Removing container from wp_nav_menu not working
- Check if page is in a certain menu
- Increase search results for Admin -> Appearance -> Menus -> Search (default is 10)
- Show current navigation path from menu
- Is it possible to add classes to list items in wp_nav_menu()?
- How do I add the data-toggle=”modal” data-target=”#myModal” attribures to a WP Nav bar?
- How do I fix this error: Warning: invalid argument supplied for foreach()?
- Exclude one item from wp_list_pages( $args );
- different Menu position showing same menu
- Page not appearing in navigation bar
- Extend WordPress REST API to show slugs for menu items
- WordPress Custom Menu Widget Style
- Output menu navigation in php file
- Custom Post type menu highlighted in the archive/post
- Unclickable Menu Item Label in Custom Menu with Clickable Children
- Remove Metabox from Menus screen
- Sort wp_nav_menu() by menu order
- How to have custom menu Item CSS Classes for wp_page_menu() or wp_list_pages()
- How to fix “Supplied nav_menu_item value missing property” after update to WordPress 5.0
- How to give custom classes to the WordPress Menu widget
- No “current-menu-ancestor” class added when browsing an archive page
- Problems Displaying Multiple WP Menus
- How to add programmatically all pages and children to backend menu
- View h2 content tags of a page in sub menu
- How to add custom classes to more than one separate menu’s a link in wordpress?
- Separator for custom nav menu
- add_submenu_page function to show videos table
- Menu item with no page, but with dropdown
- Conditional secondary menus
- Create a MegaMenu using a walker and the start_lvl function
- Nav and logo loading each time causing menu to move JointsWP – Foundation 6
- WordPress Plugin menu position overwrite other item
- Change submenu markup
- Get page slug/id from position in menu
- Two different “Home” items in custom menus dashboard section
- How to use a start_el variable in start_lvl
- list category posts under its item in menu
- How to re-arrange the MENU of “Allure Real Estate Theme for Placester” wordpress theme?
- Using _s theme, menu changes do not affect header menu
- Change class-name on “current_ancestor” in wp_nav_menu
- styling wp_nav_menu – horizontal, sub-menu drop downs
- Show children (sub-navigation) of active menu item only
- Highlighting top level link when viewing one of it’s sub-pages, which are not linked in the menu
- Make menu items open in new tab/page
- Adding top level items in the admin menu that link to a post
- How do I hide “Pages”, “Media”, “Comments”….for editor role?
- how to change the color of menu text wordpress?
- Need a menu on left sidebar of the page with below requirements [closed]
- How to get submenu dropdown with images?
- add login menu with submenu
- Walker Class: Output Parent Description and Featured Image right after sub-menu?
- Generate Navbar In WordPress
- Showing home button in a specified menu
- Odd spacing in Navigation Bar [closed]
- wp_list_pages Hierarchical Help
- How to avoid the and which added when custon menu widget is used
- An alternative to WordPress’s built-in menu functionality
- Registering a static menu?
- Add session or cookie to remember last menu location
- Is there any way to change the CSS class applied to 2nd level sub menu ul’s?
- sub.menu’s not working
- pre_get_posts fix to show menu on CPT Archives broken WP 6.0
- How to change how WordPress renders navigation menu on Block Themes
- Problem with links once in portfolio item
- How to link current logged-in user to their author page via URL (Beginner)
- Top bar menus not showing on mobile
- url_to_postid method in walker_nav navigation menu causing exceptionally high TTFB
- Add Different Class on Different Ul in twenty-twentyone theme
- How to create a link-less parent (top level) menu item that doesn’t use an anchor tag
- wp_nav_menu container style args
- Structuring Nav Menu and Background Custom page (Help)
- Adding additional html to the end of the root level in a custom nav walker
- wordpress custom menu – show parents, siblings, children depending on depth
- add_theme_support( $feature=’menus’ )
- How to swap text in menu item back and forth?
- WordPress menu issue – if there are child links partents won’t click
- Build a one-page navigation within a non-one-page ttheme…
- Need Help Regarding Menu Magement in admin
- Add class to specific li item menu in function.php
- WordPress customizing a walker menu class
- And I click on a menu item and it leads me to nowhere
- how do you create this customize menu using wp_nav_menu function?
- Show thumbnail to category items in wp_nav_menu(), how?
- Conditional Nav Menu Inside Nav Menu Across Multisite Sites
- Custom menu creation
- When submitting more than 200 menus, I get “Service Temporarily Unavailable”
- Limit the amount of menus someone can make
- How to customize navigation menu?
- Active menu also for single array
- Navigation list not correctly styled on pages with custom template (missing .current-menu-item)
- How to make an anchored page in a navigation menu tab
- Change menu item order
- Menu System: Custom Links
- highlight parent page on menu when child page is on sidebar (and not on menu)
- nav tag wrapping around dropdown
- Resolve the debugs
- Formatting WordPress Menus (without bullets, inline with text)
- Change Menu Order
- Menu problem : when add wordpress element in menu it convert into empty custom link