The default fallback in wp_nav_menu for a menu that doesn’t exist/isn’t registered is wp_page_menu, which unfortunately does not support the same arguments/implement the same level of “customisability” – you either need to create a custom fallback, or remove the fallback entirely (so that the user is forced to set a menu).
Related Posts:
- Dynamically exclude menu items from wp_nav_menu
- Add custom menu item using wp_nav_menu_items filter
- Custom search filter causes menu and query_posts problems
- Unregister Nav Menu from Child-Theme
- Allow html tags in WordPress Custom Menus Description Field
- Using filters to change href of nav menu page link
- How to apply a class to the second word in menu list item?
- WordPress nav_menu_link_attributes Not Working
- Is it possible to add a filter for the output of nav-menu items in admin?
- if role is logged in then do something
- Filter menu item to add classes/attributes?
- Edit html for menu items in default frontend menu
- Set Item Order with wp_nav_menu_{$menu->slug}_items
- When at / ( or “home”) my menu doesn’t get a current-menu-item class
- How to add parent element’s title to nav menu’s child?
- Why is ‘nav_menu_item_args’ filter’s $item argument empty?
- Add class to active element and its parent in nav menu
- display only the wp_nav_menu, which has the current-menu-item
- Removing strip_tags not working on nav_menu_description
- Third level navigation class
- How to add #navbar to all page links?
- Header style different on home and remaining pages
- WordPress Admin Bar Covering & Overlapping Fixed Menu Header [closed]
- add span to top level links of a wordpress menu called “main”
- Debugging – trying to add search box to menus
- wp_list_pages() but only show children on the branch you are on
- From a page, is it possible to find entry’s “menu_item_parent”?
- Add active class to top-level menu items when viewing single for that post type
- How I can overlap my menu in my header picture
- header menu structure: cannot add additional menu items without alignment issues
- Menu custom link not working for external site
- add_filter on menu items to add a menu item
- how to disable default menu classes
- Insert other menus as submenus of a main menu
- list category posts under its item in menu
- pull non-wp site into content area of wordpress -or- pull wp header into non wp site?
- Active Menu Highlighter with Subpages?
- Prevent menu from loading in a page template [duplicate]
- Insert a div before the wp_nav_menu
- How to change menu structure?
- Secondary Navigation Menudisappeared When using wp_nav_menu_items
- remove specific classes from menu items
- wp_nav_menu action/filter help
- add_filter for where statment issue
- Add a counter beside menu item label
- Add custom link on the fly to nav menu
- Filter to hook into menu items and add a custom attribute
- Page header menu links change
- plus sign not working in widget “Header: Nav Menu”
- how to change menu titles
- if role is logged in then do something
- Possible to append class to nav menu added to widget area?
- Cannot collapse a responsive menu in WordPress
- Is it all right to put the whole tag into template_part file?
- Add “onclick” option to header menu item
- Header Navmenu glitching in Chrome (but not other browsers)
- Modifying Woocommerce menu based on tags and categories
- How to switch menu location in this header.php?
- Why does WordPress convert absolute URLs to relative URLs for menu items?
- Menu location switcher – example code fails
- Unable to remove page from primary menu
- Add Featured Image and Title to wp_nav_menu items
- Show thumbnail to category items in wp_nav_menu(), how?
- WordPress fountainpress header is covering top bar
- Add Class to Custom Menu Widget ul
- Change header menu login-logout without changing main menu
- Avoid changing menu query with suppress_filters => false
- Removing menu item doesn’t get removed on edit post
- Add Protocol to Custom Menus
- How to modify menu text in callback function of ‘walker_nav_menu_start_el’ hook
- Why is WordPress stripping anchor links from mneu item URLs?
- Add button and title on submenu WordPress
- why did the homepage button go down from the row of other menu items when I deleted text within the navigator information?
- Header not showing in new pages
- There is no option to click the button in header only on some pages
- How to organize the header elements, so that it doesn’t come out differentin mobile view
- In WordPress, I want to use code to filter out one menu item (page) from displaying when I call wp_nav_menu() function
- Retrieving a list of menu items in an array
- How to get a different mobile menu than desktop menu in the twentytwelve child theme
- Bar separated navigation by extending Walker_Nav_Menu
- how do I delete (not exclude) a menu item from navigation bar
- show only a given level in nav menu
- Keeping ‘current-menu-item’ highlight of navigation menu?
- Possible to add a dynamic link to a sub-menu via wp_nav_menu_items?
- Fragment URL in navigation item without a custom link
- Is there no straightforward way to display a separate second level using wp_nav_menu()?
- How to add schema.org SiteNavigationElement and property URL to navbar?
- wp_nav_menu: Is there a way to modify the output of that got a submenu?
- How can I create a new menu item that links to an archive of a custom post type?
- WordPress menu>Custom Link: removing my link formatting and adding %20
- Wp_list_pages not showing children with custom page template
- Buggy wp_nav_menu?
- WP Menu Rollover Nav Item and Effect DIV Elsewhere
- How to create a mobile menu full screen overlay using Understraps Bootstrap 4 theme
- adding drop down menu item to existing menu
- How to Hide/Remove Pages section in Menus (Dashboard)
- wp-nav menu with custom walker , how to remove a tag if it has any submenu
- Always show wordpress submenu on responsive header menu
- Placing generated list into drop-down on custom menu
- How to disable permalink of a particular menu item?