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
- Add custom menu item using wp_nav_menu_items filter
- Using filters to change href of nav menu page link
- Can you have different menus and theme on a per-page basis?
- List children of second level sub page
- How to make pages metabox display all hierarchy in menu admin?
- 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()
- 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
- 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
- When clicking on menu item not going to specific page
- Ad custom admin page like WordPress customizer [closed]
- Create custom page and add it in nav menu by code
- 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
- Prevent menu from loading in a page template [duplicate]
- How to add a page to header that is outside of WordPress?
- Highlighting top level link when viewing one of it’s sub-pages, which are not linked in the menu
- Three menus – parent / child / sibling
- Add (grand)child pages automatically to nav menu
- how avoid the link of the current post in the menu in the sidebar?
- Disable parent in wp_list_pages – WordPress
- The cart, checkout, and shop links not getting removed
- Page appears after de registering from menu
- URL links consistent with menus?
- Dynamic menu wp_list_pages displaying only current branch including: current page, his siblings and its childs
- 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
- 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
- Catagorized hierarchy menu for PAGES!
- Custom theme – pages in menu
- Page dependent sub-menu?
- adding pages in underscores.me theme
- How to get the Page Name of the current page?
- Menu links URL with PHP GET method
- Add CSS Class to WordPress Menu Item Dependent on the Page the User is Visiting
- How can I order these pages in this navigation bar on this old wordpress theme?
- Why does WordPress convert absolute URLs to relative URLs for menu items?
- Parent link need to go first child submenu
- Unable to remove page from primary menu
- how to create pages and link them to a menu
- How to sort a sub-menu, generated with get_pages(), by the page order instead of alphabetically?
- How to add class and span to
- Specific Page that convert Hyperlink to anchor in nav menu
- WordPress – Apperance > Menu
- change link of menu particular tab
- Menu Structure with Links failure to update
- Top menu link anchor href value change after online server?
- Creating and populating custom nav menu (menu-item-position not working)
- Show content of subdomain from specific menu-item?
- Navigational error
- How to make a page to not appear in the menu when created?
- How do I add a link to the menu that has a charector (?) in it?
- Remove link from Page name in navigation bar
- Site with all content on the front page
- Adding Pages to Menus – No Page Hierarchy in Backend [duplicate]
- Change menu item order
- Menu System: Custom Links
- Unsual behaviour of navigation Menus
- Wrapping my ‘s with
- How does WP knows which template to use for a page
- Problems with draft website pages
- Displaying list of random links using wp_nav_menu
- WordPress removes URL parameters from menu elements when saving the menu
- how to add permalink/slug to wordpress custom link menu item