Menu Generator

Overview

Use this tool to create custom code for Navigation Menus with register_nav_menus() function.

Usage

  • Fill in the user-friendly form.
  • Click the “Update Code” button.
  • Copy the code to your project.
  • Or save it as a snippet and share with the community.

Examples

If you are still learning how to use this tool, check out the following examples:

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.
  Save Snippet
if ( ! function_exists( 'fracture_footer_nav' ) ) {

// Register Navigation Menus
function fracture_footer_nav() {

	$locations = array(
		'footer_column_one' => __( 'First Nav Column in the Footer', 'fracture_theme' ),
		'footer_column_two' => __( 'Second Nav Column in the Footer', 'fracture_theme' ),
		'footer_column_three' => __( 'Third Nav Column in the Footer', 'fracture_theme' ),
		'footer_bar' => __( 'Footer Bar Nav Menu in the Footer', 'fracture_theme' ),
	);
	register_nav_menus( $locations );

}
add_action( 'init', 'fracture_footer_nav' );

}