Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Top Navigation Vertical Dividers? #52

stebesplace opened this Issue Jun 22, 2012 · 2 comments


None yet
2 participants

I attempted to break out the menu walker into two functions, and load them independently, to have two top menus (primary & secondary) which allows for placing a vertical divider between them. I couldn't get it to work quite right, since it loaded my secondary menu in place of the primary. Might be something with the walker.

Is there an easier way to accomplish this? Otherwise I'll rethink my function. Thanks!

Have you tried simply adding the divider in the display function inside your template? Something like this:

wp_nav_menu( array(
'menu' => 'main-menu',
'container_class' => 'nav-collapse',
'menu_class' => 'nav',
'fallback_cb' => '',
'menu_id' => 'main-menu',
'after' => '<li class="divider-vertical"></li>',
'depth' => 1,
'walker' => new Bootstrapwp_Walker_Nav_Menu()
) );

I haven't, but will give that a shot when I get a chance next. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment