Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Header & Footer Menus

I agree.

// Register Navigation Menus
function ra_nav_menus() {

	$locations = array(
		'header_menu' => __( 'Header Menu', 'ra' ),
		'footer_menu' => __( 'Footer Menu', 'ra' ),
	);
	register_nav_menus( $locations );

}

// Hook into the 'init' action
add_action( 'init', 'ra_nav_menus' );