Templates can all have unique code, and your template may or may not support Custom Menus. I would find out if you can add custom menus through your Appearance > Menus tab in the admin area. If you can’t, all new pages you add from the Pages tab will most likely end up in that main menu by default.
If you can add custom menus, then you should look up the function you are referencing here to get a good understanding of how to place your code.
Also check to see if you have the option to set the menu which will be your main menu in the Menus tab.
Related Posts:
- How to get current page menu item name instead of full menu item list
- Link to Homepage in Menu
- How to show pages in menu without link
- wp_nav_menu: show menu only if one exists, otherwise show nothing
- Add custom menu item using wp_nav_menu_items filter
- Add child pages automatically to nav menu
- Removing link ” from ” menu for some “links” without JS
- Automatically remove trashed pages from nav menu
- Using filters to change href of nav menu page link
- Directing a page to a default subpage
- Can you have different menus and theme on a per-page basis?
- Links open only on new tab or window
- List children of second level sub page
- How to make pages metabox display all hierarchy in menu admin?
- Hide pages depending on role
- Get parent page/menu id of current post
- Change menu items URL
- Adding different classes to anchor in navigation menu
- Making WordPress’ page and menus visible only for logged in users, checking session variables
- Different side menu on each page
- Pending Custom Link in Menu
- WordPress – site with 2 stylesheets and more…
- Remove Page Name From WordPress Menu
- Hiding Menu From Specific Pages
- Getting post content within wp_nav_walker
- wp_list_pages sort order is different for different languages [closed]
- Force PDF download from custom menu?
- list pages only from master parent
- Page-Linking Structure
- wp_list_pages: only show subpages on the parent page?
- How to add wechat (weixin) link to navigation menu?
- Auto add pages to primary menu with functions.php
- Admin only menu/page
- Does loading of sub pages in menu cause load to the server?
- Image as a link using wp_nav_menu()
- WordPress menu permalink redirects to wrong page
- Link that refers to a menu item with dynamically generated URL
- Fragment URL in navigation item without a custom link
- Schedule Page to Menu [duplicate]
- Add class active to static menu
- wp_list_pages() but only show children on the branch you are on
- Separator for custom nav menu
- How do you link to a place in another page without any styling issues?
- Check if Page Already Exists in Menu
- Programmatically add existing pages and subpages to Appearance Menu
- How to retrieve parent menu item name of current submenu item
- two different separate sections on the same site
- Custom Links menu items include in Search Results
- Menu custom link not working for external site
- When clicking on menu item not going to specific page
- Ad custom admin page like WordPress customizer [closed]
- Why is wordpress forcing https link generation?
- Displaying different page links on different pages
- Create custom page and add it in nav menu by code
- Links do not open from click, only in new tab [closed]
- Adding existing links to custom navigation menus?
- Does is_child() exist in wp 3.5.1?
- wp_list_pages sort order by custom nav menu order
- How to highlight 1st level menu item based on actual page
- How can I switch pages?
- Prevent menu from loading in a page template [duplicate]
- How to create a menu item which is not a page
- How can I make a menu link visible only to admins (without plugins)?
- How to add a page to header that is outside of WordPress?
- How to Structure Pages and Subpages
- Highlighting top level link when viewing one of it’s sub-pages, which are not linked in the menu
- Three menus – parent / child / sibling
- How to change the link on the logo at the menu?
- Add (grand)child pages automatically to nav menu
- how avoid the link of the current post in the menu in the sidebar?
- Creating Menu Links in a Custom Theme
- Disable parent in wp_list_pages – WordPress
- The cart, checkout, and shop links not getting removed
- Page appears after de registering from menu
- Get parents child pages
- URL links consistent with menus?
- Dynamic menu wp_list_pages displaying only current branch including: current page, his siblings and its childs
- wp_nav_menu without menu or theme_location specified
- I can’t add more pages to menu – menu delete pages
- wp_list_pages Hierarchical Help
- Parent Page > Child Page Menu
- Opening Menu link in another tab
- Active class to current link
- Making pages in a menu appear conditionally
- How to add class to anchor using wp_nav_menu
- Add pages content to startpage through custom menu
- add_menu_page does not render the expected result
- Simple form to add custom links to menu?
- Page header menu links change
- custom menu widget where menu title is a link
- 2 item in a same menu pointing to 1 page
- Catagorized hierarchy menu for PAGES!
- Add a menu metabox to post edit page
- Setting or plugin for showing submenus horizontally under the main menu, and keep them after selection
- Custom theme – pages in menu
- Problem with links once in portfolio item
- Page dependent sub-menu?
- Add prefix to url, but products not showing in page SHOP
- How to create a link-less parent (top level) menu item that doesn’t use an anchor tag
- adding pages in underscores.me theme