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
- non-clickable placeholder in the menu
- Add log in link to menu in Twenty Twelve
- Where to update the Static Pages Blacklist for Multisite Install?
- Vertical Sidebar Menu Parent and Child not displaying correctly [closed]
- Hide Menu items base on capability
- How to show Home Page link in WordPress Menu and how to add an icon to this?
- Remove li from wp_nav_menu
- Run a filter when a walker runs
- do_action appearing outside of menu?
- Walker class conditional based on parent menu item label or custom css class
- ‘wp_get_nav_menu_items’, when fired inside of the ‘wp_update_nav_menu’ hook, returns old menu items, instead of new
- Walker Class – Check if menu item has description and if so add class to li
- Multiple languages menus problem
- How to remove dropdown from wp_nav_menu
- Static site menu with multiple ul’s to wp menu
- WP nav menu + Bootstrap, add role=”menu” to UL
- Setting or plugin for showing submenus horizontally under the main menu, and keep them after selection
- New wp menu menu styling
- 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?
- save_post() on Menu Save
- Menu dropdown disapears behind slider
- Access CSS Classes specified in Menu options
- How to output the menue structured for tabbed navigation?
- Making current_page_item work with wp_list_pages in sidebar on post pages
- How to centre menu items on horizontal nav bar? (e.g. make margins equal) [closed]
- What is the best way to incorporate responsive dropdown navigation menu into custom theme?
- Submenu items not working anymore