Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have bootstrap 3 integrated into my custom WP theme. I am using navwalker and WP's built in menu. Everything is working great, but I would like the child items of my parent level to be displayed in horizontal lists rather than the default. Something similar to what you see here on the DropDown button. http://bootsnipp.com/snippets/featured/large-dropdown-menu

I'm really not sure where to begin. I'm not sure if this can simply be accomplished through some added CSS or if I need to tap into Wordpress more.

This is my current menu code:

 <nav class="navbar navbar-custom" role="navigation">

  <!-- Brand and toggle get grouped for better mobile display -->
  <div class="navbar-header">
    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
      <span class="sr-only">Toggle navigation</span>
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
    </button>
    <a class="navbar-brand visible-xs" href="#"><span class="glyphicon glyphicon-home"></span> Menu</a>
  </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse navbar-ex1-collapse">
        <?php
        wp_nav_menu( array(
'theme_location' => 'topmenu',
'depth' => 4,
'container' => false,
'menu_class' => 'nav navbar-nav nav-justified',
'fallback_cb' => 'wp_page_menu',
//Process nav menu using our custom nav walker
'walker' => new wp_bootstrap_navwalker())
);
        ?>
    </div><!-- /.navbar-collapse -->

</nav>
share|improve this question
    
There are not enough details here. it is much better to ask about things that you tried but didn't get working as you expected they will. In general you probably should try the CSS way first and change php code only if you need to change the HTML of the menu. –  Mark Kaplun Nov 20 '13 at 4:45
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.