How to Add Custom Navigation Menus to Your Theme

How To Add Custom Navigation Menus

The navigation bar is a very crucial part of any website to attract the visitors. In WordPress, Navigation Menu is a theme feature introduced with Version 3.0. WordPress provides an easy to use mechanism for introducing customized navigation menus into a theme.  To add custom navigation menus into your theme, you need to add the some code segments to your theme files.

You can implement these best features to customize the navigation menus in any theme. First, In your theme’s functions.php file, you need to write a function to register the names of your menus.

Register Navmenu

Now, go to Appearance » Menus and you will see ‘Custom Menu’ as theme location option.

Menu

The final step is to tell the theme where you want the menus to show up.  Add this code to your theme file where you want to display navigation menu.

Show Navmenu