Forums
Forums / Themes and Templates / Assign menu to template
(@corgbrannon)
14 years, 2 months ago
Hello,
I am using a custom menu “standard” for the top navigation. I want to add a different template like my-template.php that utilizes a different custom menu “not_standard”.
How to assign the custom top menu “not_standard” to my-template.php?
Thanks!
(@esmi)
You would need to register a new menu location in your theme’s functions.php file and then use this new location in your custom template.
The new menu should be in the same primary menu location.
It’s still classed as a new “location” in WordPress terms irrespective of where it sits on a page. See register_sidebar().
The topic ‘Assign menu to template’ is closed to new replies.