Add support for WordPress custom menus

Here's a quick snippet on how to add custom menus to WP.

This piece of code goes into your theme’s functions.php file:

add_action('init', 'register_navmenus');
 
function register_navmenus() {
  register_nav_menus(array(
    'Header' => __( 'Header Navigation' ),
    'Body' => __( 'Secondary Navigation' ),
    'Footer' => __( 'Footer Navigation' ),
    )
  );
}

Name the navigation items whatever suits your use case.