/wp-bulma-navbar-walker

A WordPress Nav Walker for the Bulma Navbar Component

Primary LanguagePHPMIT LicenseMIT

WPBulmaNavbarWalker

A WordPress Nav Walker that outputs markup for the Bulma Navbar Component.
Supports sub-menus/dropdowns.

Usage

<nav class="navbar">
  <div class="navbar-brand">
    ...
  </div>
  <div class="navbar-menu">
    <div class="navbar-end"><?php
      if (has_nav_menu('primary_navigation')) {
        wp_nav_menu(array(
          'theme_location' => 'foo',
          'menu_class'     => '',     // ignored
          'container'      => '',     // ignored
          'menu_class'     => '',     // ignored
          'items_wrap'     => '%3$s', // NOT ignored
          'walker'         => new \Bikubi\WPBulmaNavbarWalker\Walker_Nav_Menu
        ));
      }
    ?></div>
  </div>
</nav>

Notes