Skip to content

Instantly share code, notes, and snippets.

@sguzik
Created May 8, 2012 18:56
Show Gist options
  • Save sguzik/2638491 to your computer and use it in GitHub Desktop.
Save sguzik/2638491 to your computer and use it in GitHub Desktop.
HTML/PHP for menu
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="<?php echo home_url( '/' ); ?>"><?php bloginfo('name'); ?></a>
<?php
/** Loading WordPress Custom Menu with Fallback to wp_list_pages **/
wp_nav_menu( array( 'menu' => 'main-menu', 'container_class' => 'nav-collapse', 'menu_class' => 'nav', 'menu_id' => 'main-menu') ); ?>
</div>
</div><!-- /navbar-inner -->
</div> <!-- end of .navbar -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment