Now where you want the menu in your theme, add something like this:
if (has_nav_menu( 'header-menu' )) {
wp_nav_menu( array( 'theme_location' => 'header-menu' ) );
}
Related Posts:
- wp_get_nav_menu_items() not working with slug
- Error “Trying to get property of non-object” with Custom Walker for wp_nav_menu
- Add Class to Specific Link in Custom Menu
- how to create a menu with all sub categories?
- How to avoid wp_nav_menu() ID conflict?
- Remove unusable metaboxes in nav menu management screen
- Highlight parent menu item when child is not in menu
- wp_nav_menu() loses ‘current-menu-*’ classes on single product page within category
- Creating new dynamic menu including BP links [closed]
- Building a Sub-menu: Display Parent Category/Page’s Children When Viewing Children
- List parent item with all child item on child pages
- Output the aria-labelledby parameter for a nav menu child
- Hide menu items for visitors and filter based on role
- Add a “has-children” class to body tag?
- Custom Nav Walker sub-menu HTML construct
- How to remove trailing tags from wp_nav_menu walker
- Custom Walker for Walker_Nav_Menu
- How to scroll item in the Menu setting effectively?
- Building custom API and using wp_get_nav_menu_items to get menu items. Only works when logged in, returns nothing when I’m not
- How to display dynamic content in start_lvl function
- Appearance -> Menu -> Menu Structure : Add plain HTML code as an element
- Add custom -element to wp_nav_menu
- Replace menu permalink/hyperlink with only menu name/slug
- wp_nav_menu add some element to container
- Different fields available for different sites when when customising Menu’s
- get_search_form() doesn’t appear to take parameter into account
- Custom menu deletes itself
- Find out if a page has no parent
- show different admin menu to different user roles
- How to include a third level with wp_get_nav_menu_items function
- Can’t include Language switch in Nav Menu
- Bulk Custom Menu and Wp-Ecommerce
- Can only get one of two custom menus to display
- Check if Page Already Exists in Menu
- Reuse a custom WordPress menu on another WordPress website
- How to dynamically populate a dropdown
- wp_nav_menu not working [closed]
- Default WordPress menu content
- Add code to WordPress menu items by class
- how do i change the text under a navigation menu [closed]
- How do you add a around the second level of a Menu?
- How should I build a custom menu walker for this setup?
- Remove admin menu
- Dynamic_sidebar inside wp_nav_menu
- Limit User Iinterface for Admin?
- Creating menu and breadcrumb “sections” within WordPress 3 being used as a CMS
- Hide menu from homepage
- changing theme folder name breaks menus – twentyeleven
- Submenu in sidebar custom page template
- WordPress Nav Walker – Top menu link with dropdown link not clickable (dropdown opens)
- Disable parent in wp_list_pages – WordPress
- Add scheduled page or post in the menu section on back-end
- Hoverable menu to appear in different sections of page
- Show Sidebar Menu Subpages When Clicking Parent
- Secondary menu in WP 4.5
- Current User In Custom Menu Item URL [closed]
- Creating other page than page.php
- Appearance > Menus > Left Sidebar > Add Toggle
- Custom menu styling
- Efficient wp mobile menu
- Echo Menu located in primary navigation
- Additional navigation bar in header
- Dynamically populate the menu when a new category is created
- Is there any difference between widgets (used in order to manage menus) and register_nav_menus() in terms of performance?
- Menu items not clickable
- How do you show horizontally the submenu in WordPress using the nav walker?
- Adding menu title to custum URL
- How to remove top menu item and font awesome icon in WordPress menu?
- Add “onclick” option to header menu item
- Full submenu not displaying in wordpress
- 2nd level (drop-down) of the navigation menu not working [closed]
- Mobile menu not working – jQuery error?
- show a hidden ul if li is active
- How can I make menu items into two seperate buttons with different functions?
- Responsive Dropdown Menu
- Header lists posts instead of showing primary nav menu
- How to separate sub-menu output and keep associated with parent
- Different colors for navigation bar
- Eliminate menu collapse button on website
- Best way to build a 500 item menu
- Count Level 1 Childs for Custom Nav Walker WordPress
- Iterate through each menu item into a shortcode
- Showing main menu and child menu in diffent places in a same page
- “Static” Child Menu with Accordian
- Display same menu for parent and all its children
- Image menu on responsive WordPress
- WordPress Navigation default output
- Specifying Class style for Menu
- Auto Filled Custom Menus for Custom Post Types?
- Convert HTML code to WordPress menu
- How to view menu and submenus in URL
- Permalinks linking to similar named site
- Adding Pages to Menus – No Page Hierarchy in Backend [duplicate]
- Custom navigation / menu output (walker?)
- How does WP knows which template to use for a page
- Sub menu for a (single) page
- WordPress “add to menu” button not working
- Primary menu shortcode name
- Add acf custom fields so sub item in menus
- change breakpoint widths for divi theme tablet view