you can put this code in your functions
add_action( 'init', 'register_my_menus' );
function register_my_menus() {
register_nav_menus(
array(
'menu-1' => __( 'Head' )
)
);
}
and this code, in the place you want your second menu
<?php wp_nav_menu( array( 'theme_location' => 'menu-1' ) ); ?>
and than, you can control your new menu, through the menu section in the admin panel
Related Posts:
- Register/Get sidebar?
- Add #sidebar-2 to a custom page template
- Custom page sidebar using Template dropdown box
- Custom page template to sidebar/widget
- Content not showing up when using custom template + sidebar
- different sidebars depending on template (is_page_template is not working)
- E-Commerce Products Page Sidebar Formatting
- What does is_page_template() compare against?
- Creating custom blog page template the right way
- How to remove all styles for certain page template?
- How to wrap the widget content with a div or get the widget title outside?
- Get sidebar parameters (before_widget, before_title, etc.) from within a widget
- dynamic_sidebar not rendering sidebar
- Simplest way to add a second html editor to the post/page admin?
- How to consolidate multiple static page templates into one dynamic one?
- Add div class to only one widget
- Registering Sidebars and Sidebar Widgets. Sidebar Widgets Not Displaying
- How the WordPress sidebar works
- How to remove a parent theme template from Quick Edit?
- Removing or Restricting Access to Page Templates for Editor Role
- Can I create a page template, use it once, then hide/remove the option to use it again?
- Custom template for each page
- Can you call a template file without assigning template to a page in the admin panel?
- page-slug goes to not found
- Registering multiple sidebars with data from an array
- Best practices: Custom theme sidebar menu – hardcode or widget?
- How do I add a body class to specific pages?
- WordPress widget new instance creates content duplicates
- How to create a page template that retrieves content from db?
- Change path of the page’s template
- Get page id of current page from template [duplicate]
- is_page_template returning false
- get_pages — parent vs child_of?
- WordPress widget/sidebar dividers?
- adding multiple sidebars on pages
- Excerpts for Pages
- Can’t see widget areas in my customizer
- Create a page template with No Footer
- Verify if the current page has at least one published child
- Adding sidebar to template creates horizontal gap the size of the side bar
- How to rewrite title- and meta-description templates for page templates in Yoast Plugin [closed]
- Adding a Menu Page to The Dashboard
- Load sidebar template just once to prevent multiple animations
- Cleaner way to define multiple variables for is_page_template()
- 2 dynamic sidebars registered, not showing up
- Custom Sidebar only on single post
- page shows 404 on form submit
- Sidebar widget not displaying after simple code update.
- Is it possible to add a child post into the parent page?
- Remove sidebar on single page using plugin API
- Dynamic sidebar rendered in another place than i would like
- Is it okay to use page template as contact page? [closed]
- Display one post in different formats conditionally
- Custom Page Templates
- How to build a PDF repository in WordPress
- Why is a renamed custom template file still showing up in the template dropdown menu?
- Page template added via plugin not saved in Gutenberg
- Change text size and color for tags and category meta description on product page
- Strip from the_tags() output
- Delete post: 2 wp_redirect if pages are different
- Template Redirect to /2015 to use page template
- The best way to create pages like an ‘about’, ‘contact’ and etc [closed]
- Image not showing on page template in Twenty Fifteen-theme
- Adding an extra sidebar to your theme
- Sidebar only shows up on blog page
- Is there a way to dump all registered sidebar/widget?
- Widgets not showing on sidebars
- Three step order form, how to go to next step
- WordPress custom login and register page problem?
- Using conditional statements in place of custom Page templates
- Remove Sidebars from page
- Add featured image as post header background image
- Get or set values in post meta
- How to make sidebar float right and site content left
- WordPress pass url to page template when page does not exist
- wp_logout() not working after form submission
- Set page title in WordPress with PHP
- How to allow user to select page template from front end?
- Custom page template displays the archive template
- How to get template link?
- Call Multiple Sidebars at once
- What is the best way to create very custom campaign pages?
- WordPress fetches the archive page instead of my custom template
- How to set title from page-template?
- Custom Forget Password page
- How do you create a default template?
- Cannot display default template after switching to custom
- A simple form submission but notice : Trying to get property of non-object
- Lead Generation with Cookies in WordPress
- Show tarifs page with menu a or b depending on menu of origin
- Page (template) with only news of the type “gallery”
- How can I make different page templates for one category?
- Sidebar not displaying on custom-page.php
- Getting a custom area in a theme for dynamic content for page
- wordpress header leaks into body in a specific template
- Article Template
- Front end user registration form [closed]
- How to show feature image, Title, Breadcrumb before Page in flatsome theme
- WordPress Page Slug with URL custom template
- Can wordpress search inside a custom page template?