Create menus in WordPress

//Add this in your function file

function wp_new_menu() {
  register_nav_menus(
    array(
      'header-menu' => __( 'Header Menu', 'textdomain'),
      'footer-menu' => __( 'Footer Menu''textdomain')
    )
  );
}
add_action( 'init', 'wpb_custom_new_menu' );



//Add this in your template

<?php
wp_nav_menu( array( 
    'theme_location' => 'header-menu', 
    'container_class' => 'menu-class' ) ); 
?>