Use the 'theme_location'
argument in header-anesthesia.php
:
wp_nav_menu(
array(
'theme_location' => 'anesthesia-menu'
)
);
WordPress will look for a menu assigned to this location now and pick that instead of the default menu.
Related Posts:
- How to get IDs for objects in menu branch?
- Dynamically link to the latest post or simulate request of specific post in page template
- Remove navigation from header in custom page template
- Show all parent pages and their children below from same author as currently viewed page
- Using website header, menu and footer on WordPress blog
- How do I render a navigation menu like my theme does?
- My menu bar dissapeared with autooptimize [closed]
- pull non-wp site into content area of wordpress -or- pull wp header into non wp site?
- Header and nav menu problem on Thesis site [closed]
- Prevent menu from loading in a page template [duplicate]
- Wp_list_pages not showing children with custom page template
- Page header menu links change
- Swap out a page that is a parent to a many many pages
- Add a non-dynamic phrase/character after a page title?
- How to add class and span to
- Programatically retreive page content from its template page
- How does WP knows which template to use for a page
- Add “Logout” link to navigation menu
- Convert output of nav_menu items into a tree-like multidimensional array
- Get page IDs from nav items
- Add class to top level menu item if it has multiple child levels
- Create a formatted table-like menu
- Simple Navigation Walker – Wrapper-class around first sub-menu
- wp_nav_menu, add class to every nth item?
- Manipulating menu HTML
- Add Menu items description via Custom Walker for wp_nav_menu()?
- Wrap description and sub menu in a wrapper
- Navigation menu with children shown only for current page
- Change menu items URL
- How to get the post name (slug) from the item ID when traversing the navbar?
- Why is ‘nav_menu_item_args’ filter’s $item argument empty?
- how to get nav menu list through menu name in wordpress
- wp_nav_menu – show children of current menu item only?
- how to assign more permission to wordpress author
- $variable (counter) inside wp nav menu
- Adding Custom “Current Menu Item” class to navigation?
- How can I add divs or change li in the submenu of the menu_nav
- How to create a Menu based a username
- How to add php to custom link in the nav menu? [closed]
- Did upgrading from 3.3 to 3.3.1 introduce breaking changes in the menu navigation?
- WordPress menu permalink redirects to wrong page
- Remove current class from sub menu items
- How to change menu URLs to hashes?
- Getting menu items like get_pages
- nav_menu not displaying custom menu
- WordPress Menu Prepends URL To My Anchors
- Automatically list top level menu item child pages
- Check if menu_item has children or has parent
- Why is wordpress forcing https link generation?
- Container class not appearing on navigation menu
- cross-site custom menu
- How to remove the HOME menu item
- Adding menu items?
- WordPress template – How to add class to li tag if submenu exist
- How to get rid of the home link in nav menu?
- display menu as table layout
- How to change the location of the menu
- How can I make a menu link visible only to admins (without plugins)?
- magic “MENU” button under Twenty Twelve theme
- Is there a way to tell menu items to force non-SSL URLs?
- Trouble hiding menu on single page
- change hover color of specific menu link [closed]
- How can I make a WordPress sub-menu with a top-level that isn’t clickable?
- enqueue script during add menu items means before save menu items
- WordPress classes removed when using custom walker
- Get parents child pages
- Show subpages of a category in a custom menu
- how to add home icon instead of text in wordpress menu
- How to add a menu that belongs to parent blog to all child-blogs?
- How to create this kind of sub-menu in new line?
- How to use wp_list_pages on a grandparent page
- Dropdown primary navigation menu not working
- Understanding with this WordPress code
- Link after WordPress
- Im having trouble centering menu items in footer due to “flexbox”
- When created sub-directory, can we create a new navbar?
- Is it all right to put the whole tag into template_part file?
- Misleading behaviour on Menu & Theme location
- How to build a menu that change style over a section
- Menu flickering with each refresh on Google Chrome [closed]
- Remove Double Menu in Mobile View and Have one Menu Only
- calling JS to custom menu design
- How i can get current menu id with multiple occurrence
- How to get rid of the bottom line in the navigation menu via CSS file?
- Active menu item state on all menu items
- Links in new menu don’t work
- Installing compact search in the main menu?
- Next/previous a-like single navigation
- How to create a menu super voice in WP?
- Menu administration, how to allow special charachters
- How to avoid website url appending problem in wp site?
- Create custom page and custom menu
- Navigation list not correctly styled on pages with custom template (missing .current-menu-item)
- wp_nav_menu doesn’t add current-menu-item when there is an url parameter [closed]
- Some informations about the use of statics pages in WordPress
- Why there is a gap between and it’s container (A drop down menu in wordpress) [closed]
- How was this menu system created?
- How can I added the post’s Categories to the site’s top menu (like a page)?
- Why is WordPress stripping anchor links from mneu item URLs?
- Control page access based on User Meta data?