redon13
11/15/2016 - 12:31 PM

Register custom menu. src: Brad Hussey section 13 lecture 70

Register custom menu.

src: Brad Hussey section 13 lecture 70

/*
Open function.php and go down to

// This theme uses wp_nav_menu() in one location.
	register_nav_menus( array(
		'primary' => esc_html__( 'Primary', 'bootstrap2wordpress' ),
	) );
	
and add
*/

register_nav_menus( array(
		'footer' => esc_html__( 'Footer Menu', 'bootstrap2wordpress' ),
	) );
	
	/* Display in the theme. Open footer (or any want to place the custom menu)
	and add
	*/
	<?php
							wp_nav_menu(array(
							'theme_location'  	=> 'footer',
							'container'			=> 'nav',
							'container_class'	=> 'navbar-collapse collapse navbar',
							'menu_class'		=> 'list-unstyled list-inline'
						)
					); 
				?>
				
	/* footer can replaced with anything 
	after this the new menu shows up on WP dashboard and can be edited*/