Skip to content

2.0.4

Compare
Choose a tag to compare
@SideQuestDIY SideQuestDIY released this 16 Oct 15:50
· 363 commits to master since this release

This release offers full support for managing Bootstrap 3.0 menus through the WordPress menu manager and supports, glyphicons, dividers, nav headers & disables links. Now with a graceful fallback function.

Changes in this release

  • Updated fallback function to accept args array from wp_nav_menu

Tested With

  • WordPress 3.6
  • Bootstrap 3.0
  • WP_Debug
  • Theme-Check
  • Debug Bar

Upgrade Notes
In order to use the custom fallback function you must update your fallback_cb attribute in your wp_nav_menu declaration.

<?php
    wp_nav_menu( array(
        'menu'              => 'primary',
        'theme_location'    => 'primary',
        'depth'             => 2,
        'container'         => 'div',
        'container_class'   => 'collapse navbar-collapse navbar-ex1-collapse',
        'menu_class'        => 'nav navbar-nav',
        //New fallback_cb attribute
        'fallback_cb'       => 'wp_bootstrap_navwalker::fallback',
        'walker'            => new wp_bootstrap_navwalker())
    );
?>