Skip to content

A custom WordPress nav walker class for Bootstrap 4 (v4.0.0-alpha.2) nav menus in a custom theme using the WordPress built in menu manager. https://github.com/dupkey/bs4navwalker

License

Notifications You must be signed in to change notification settings

yannandco/bs4navwalker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

bs4navwalker

A custom WordPress nav walker class for Bootstrap 4 (v4.0.0-alpha.2) nav menus in a custom theme using the WordPress built in menu manager

// Register Custom Navigation Walker
require_once('bs4navwalker.php');
 <?php
 // Use the new walker
 wp_nav_menu([
    'menu'            => 'primary',
    'theme_location'  => 'primary',
    'container'       => 'div',
    'container_id'    => 'exCollapsingNavbar2',
    'container_class' => 'collapse navbar-toggleable-sm',
    'menu_id'         => false,
    'menu_class'      => 'nav navbar-nav',
    'depth'           => 2,
    'fallback_cb'     => 'bs4navwalker::fallback',
    'walker'          => new bs4navwalker()
]);

About

A custom WordPress nav walker class for Bootstrap 4 (v4.0.0-alpha.2) nav menus in a custom theme using the WordPress built in menu manager. https://github.com/dupkey/bs4navwalker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%