Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

add_custom_menus

Adding menus for Influence Child theme

if ( ! function_exists( 'register_nav_menus' ) ) {

// Register Navigation Menus
function register_nav_menus() {

	$locations = array(
		'primary' => __( 'Central Navigation', 'influence-child' ),
		'horizontal' => __( 'Horizontal Nav', 'influence-child' ),
	);
	register_nav_menus( $locations );

}

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

}