Creating multiple nav menus affects all menus.

[ad_1]

Having some trouble coding seperate nav menus. When I edit one, it applys the changes to all 3 menus. I am using the following code (and yes I double checked that the locations are all correct):

`register_nav_menus(`
`array(`
`’navbar’ => ‘Navbar Location’,`
`)`
`);`

`function register_additional_nav_menus() {`
`register_nav_menu(‘footer-hero’, ‘Footer Hero’);`
`register_nav_menu(‘footer-sub’, ‘Footer Sub’);`
`}`
`add_action(‘after_setup_theme’, ‘register_additional_nav_menus’);`

Any help on why they all display the same links when I change one? Thanks.

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer