Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Fen

Fen

if ( ! function_exists( 'theme_menus' ) ) {

// Register Navigation Menus
function theme_menus() {

	$locations = array(
		'menu-1' => __( 'Ana Menu', 'text_domain' ),
		'menu-2' => __( 'Alt Menu', 'text_domain' ),
	);
	register_nav_menus( $locations );

}

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

}