Menu Generator

Use this tool to create custom code for Navigation Menus with register_nav_menus() function. Fill out the form, update the code, copy the code to your theme.

The function used in the code.
Add Child Themes Support.
Translation file Text Domain. Optional.
Slug used in the code. Lowercase, with no spaces.
A short descriptive summary of the menu.
Slug used in the code. Lowercase, with no spaces.
A short descriptive summary of the menu.
Slug used in the code. Lowercase, with no spaces.
A short descriptive summary of the menu.
Slug used in the code. Lowercase, with no spaces.
A short descriptive summary of the menu.
Slug used in the code. Lowercase, with no spaces.
A short descriptive summary of the menu.

// Register Navigation Menus
function custom_navigation_menus() {
	$locations = array(
		'header_menu' => __( 'Custom Header Menu', 'text_domain' ),
		'footer_menu' => __( 'Custom Footer Menu', 'text_domain' ),
		'mobile_footer' => __( 'Footer Menu on mobile devices', 'text_domain' ),
	);

	register_nav_menus( $locations );
}

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