Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

test_crown_menu

This is test_crown menu

if ( ! function_exists( 'test_crown_menu' ) ) {

// Register Navigation Menus
function test_crown_menu() {

	$locations = array(
		'Home' => __( 'This is Home Page', 'text_domain' ),
		'About Us' => __( 'This is About Us Page', 'text_domain' ),
		'Gallery' => __( 'This is Gallery Page', 'text_domain' ),
		'Contact' => __( 'This is Contact Page', 'text_domain' ),
		'Blog' => __( 'This is a Blog', 'text_domain' ),
	);
	register_nav_menus( $locations );

}

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

}