How To Add A Second Menu WordPress

This is a very simple technique to adding a second menu to your WordPress theme. Simply take this snippet and add it to your theme’s functions.php file. Once you’ve added it to your theme head on over to Appearances > Menus and you’ll see the newer menu added.

function serafin_menus() { $locations = array( 'secondary' => __( 'Secondary', 'twentytwenty' ),
    );
    register_nav_menus( $locations );
}
add_action( 'init', 'serafin_menus' );

Once you’ve added it to your theme head on over to Appearances > Menus and you’ll see the newer menu added.

Now create a menu and check the box “Secondary”