To see the menu, you need to set it up in the wordpress admin side.
- Go to Appearance -> Menus You should see a “Manage Locations” tab.
- Select it. You should see your “Main Menu” location.
- Choose the menu that you created there.
- Select Save Changes.
Since you used “theme-location” to set up drawing it, you need to set a menu to your theme location to actually draw it.
(note) If you have not yet created a menu, you should use the “Edit Menus” tab to create one so that you can associate it as outlined above.
Related Posts:
- Mega Menu Walker
- Displaying Logged-In User Name in WordPress Menu
- Logout and redirect using the WP Menu
- Hide Hamburger Menu On Specific Page (Front Page/Home Page)
- Detecting classes, adding widgets, and adding divs in with a Nav Walker
- Add login hyperlink to secondary navigation menu
- Custom Navigation Bar JSON Syntax Error in JSON at Position 0
- start_lvl Ignored in Custom walker_nav_menu
- Hide main div if wp_nav_menu is empty
- Check if a menu is empty?
- How to remove a metabox from menu editor page?
- Hide a menu-item and its submenus and display a ‘Log in’ link if the user is logged out
- The best way to customize “nav-menu-template.php” to add if the ‘link_before’ is “checkbox”
- How to add active class to custom menu using while loop and wp_list_pages
- WordPress menu deletes when trying to add a hook
- Second Navigation inside header
- How can I add a custom class to only nav sub-menu > li > a items in WordPress?
- items_wrap not working
- Style wp_page_menu() items
- Have CSS Class Added with `is_page()` WP function
- Add itemprop Schema.org Markup to li Elements in wp_nav_menu
- Run a filter when a walker runs
- Change Navigation Bar based on logged in or not
- Multiple WordPress Menus that will only display all pages
- Menu — How to add “current-menu-grand-ancestor” css class
- Menu Limitations
- Automatically adding new post categories to menu
- Add data attribute to each li in menu
- Custom Walker_Nav_Menu issue with variables on PHP 7.3
- Unique icons next to each WordPress menu item
- Child page menu in sidebar
- Title Case WordPress Menu Items
- WordPress Quick Question . How to Get Parent Link in Submenu in My Code
- How to change menu order item
- Add item to top of menu using a filter in functions.php
- Register a menu – Error Header
- How to style one item from main navigation?
- Add value to new attribute inside WordPress menu items
- Menu Custom Data Attributes
- Get the name of menu item with wp_nav_menu
- How to modify mobile nav menu text in theme
- How to add aria role and schema markup to custom walker container
- How can I use custom menus with a Bootstrap WordPress theme?
- Custom navigation menu with awsAccordion
- Why can’t I add a custom image in my navigation?
- Remove submenu item from list
- Dynamic Menu drops pages?
- Remove the Tag from wp_nav_menu
- Menu not styling. New menus functionality giving me a headache
- how to changes mobile menu toggle breakpoint in WordPress
- How to display already created menus via php?
- Providin exception to WordPress wp_nav_menu Custom CSS Classes
- I want to show cart items number if any or nothing, simple CART text
- How to set Nav as a default menu in wordpress
- How to put 2 php codes in functions.php without site crashing
- Menu not updating for logged in users after redirect
- Redirect User when they click Menu Option
- Add element after navigation element title don’t works like I expect
- Add parent menu item in sub-menu in custom nav_walker
- How to create a sub-page of sub-page?
- Fatal error when using array_diff() function inside of wp_update_nav_menu hook?
- Pulling a variable into the wp_nav_menu function
- How I can add div to menu?
- Add the “.current-menu-item” class to tag?
- WordPress adding in site URL to header links
- Nav Menu Display
- Open WordPress Page from selected option dropdown
- How to add different menu items on different menus?
- Nav menù doesn’t display selected pages
- How to set and use global variables? Or why not to use them at all
- Is it possible to disable a function of a parent theme?
- Enqueue Javascript Correctly for 3.5
- Add footer.php to WordPress child theme
- Need to get specific data from array
- Restrict WordPress File Type Uploads by User Type
- Function set default image when image not present
- Automatically remove a canceled order in Woocommerce
- How to remove the cufon script from Dzonia Lite theme [closed]
- How to put “Read more” link in Custom Excerpt inside p tag?
- Remove metabox from WordPress menu editor page?
- Get users that likes the post
- My custom get_the_excerpt() can’t get excerpt by ID
- meaning of (array)function()
- deactivating an active plugin using if page
- Notice: Trying to get property of non-object
- How to tell if a user has gone in and created a menu
- can’t load .po file in functions.php
- Create shortcode for metabox gallery
- How can I redefine WordPress wp-content directory programmatically?
- Trim Titles Only On Some Pages
- ajaxurl usage for a custom function
- Open/closed function [closed]
- add a value to an external link query in searchform
- WP_Nav Highlight Parent Issue
- I am extending Walker_Nav_Menu: How can I get the number of children elements of the current item?
- How to call a specific value within the functions.php file?
- Warning: Attempt to read property “term_id” on int – Woocommerce
- Warning: filemtime(): stat failed for wp_
- Keep users logged in Without Remember Me
- How to use js variable to php in wordpress functions.php