How to add more than one menu in WordPress theme?

How to insert more than one menu in twentytwelve theme?

Follow the below steps.
Step:1- go to C:\wamp\www\your folder name\wp-content\themes\twentytwelve.

step:2-Open function.php file.

Step:3-find the register_my_menus() fuction

Step:4-and add following code.

function register_my_menus() {

register_nav_menus(

array(

‘top-menu’ => __( ‘Top Menu’ ),

‘footer-menu’ => __( ‘Footer Menu’ )

) );

}

add_action( ‘init’, ‘register_my_menus’ );

About the Author

avatar