I can see a syntax error:
replace 'theme-location'
by 'theme_location'
.
Always think about underscores in WordPress variables/functions names 😉
wp_nav_menu() : https://codex.wordpress.org/Function_Reference/wp_nav_menu
Related Posts:
- wp_nav_menu: show menu only if one exists, otherwise show nothing
- Making breadcrumb with wp_nav_menu
- Renaming a WordPress Admin Menu
- Deleted pages are NOT removed from custom menus?
- How to add active class on current menu item page?
- Add Page ID class to nav menu items
- Way to bulk delete menu items in new 3.x Appearance > Menus system?
- WordPress nav_menu_link_attributes Not Working
- Customize the menu by adding items
- 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 can I detect whether a BuddyPress page is active from within my theme?
- 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?
- Operable default menu *and* custom 3 menu
- WordPress menu permalink redirects to wrong page
- HTML to WordPress Menu convert
- Remove current class from sub menu items
- How to change menu URLs to hashes?
- How do I render a navigation menu like my theme does?
- WordPress Menu Prepends URL To My Anchors
- Automatically list top level menu item child pages
- How to handle many different menus?
- Check if menu_item has children or has parent
- Why is wordpress forcing https link generation?
- pull non-wp site into content area of wordpress -or- pull wp header into non wp site?
- 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?
- How to truncate menu label in wordpress?
- 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
- Remove first separator in wp_nav_menu
- Is there a way to tell menu items to force non-SSL URLs?
- change hover color of specific menu link [closed]
- How can I make a WordPress sub-menu with a top-level that isn’t clickable?
- 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
- How to add social buttons like facebook and twitter in the footer of a theme?
- 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?
- How to add an archive page to WordPress menus (nav_menu)?
- Is it all right to put the whole tag into template_part file?
- Misleading behaviour on Menu & Theme location
- Add category label for appearance > menus items
- Custom items for Menus
- 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
- WP pages content is missing in frontend
- 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
- Error: Declaration of MyClass::start_lvl() should be compatible with that of Walker_Nav_Menu::start_lvl()
- Installing compact search in the main menu?
- Having an issue with wp_nav_menu displaying custom navigation
- Next/previous a-like single navigation
- Menu administration, how to allow special charachters
- How to avoid website url appending problem in wp site?
- Create custom page and custom menu
- Get first menu item of custom menu
- Bought custom navigation menu from codecanyon, how to change feature.php?
- Custom menu linking to page not found
- How to insert date in topNav
- Somehow lost my MENU from my home page- help!
- How to completely remove the top section with the menu?
- Customizing Responsive Themes Menu [closed]
- How To Conditionally Change Menu In Same Theme Location
- How to display a submenu as a popup when clicking a button?
- Add menu to CMS page
- Not even able to Log in [closed]
- how can i get the page_ID in nav li [closed]
- How do i add logo in wordpress studiopress (glam theme)?
- child theme font awesome icons not working
- How to replicate a mobile menu from a site to a wordpress site [closed]