Adding Navigation Menus to WordPress

Many sites have more than one menu. In order to add a customer menu we will need to modify our functions.php file.

The orgiainl code in my theme is

“register_nav_menu(‘nav-menu’, __(‘Nav Menu’));”

In order to add seperat menu item for the footer we can add

“register_nav_menu(‘footer-menu’, __(‘Footer Menu’));”

just below the original code. When goign to the back end there will be an option to assign the menu to the ‘Footer Menu’ location. In your footer.php file you can add the following code;

“<nav class=”mainMenu”>
<?php
wp_nav_menu(array(
‘theme_location’ => ‘footer-menu’,
‘container’ => ”
));
?>
</nav>”