WP Manifestindependent plugin directory
manifest / themes / wp-bootstrap-navlist-walker

WP Bootstrap Navlist Walker

A custom WordPress nav walker class to implement the Bootstrap 3 navigation style in a custom theme using the WordPress built in menu manager.

by WP-Bootstrap · github.com/wp-bootstrap/wp-bootstrap-navlist-walker · website

8stars
10forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/wp-bootstrap/wp-bootstrap-navlist-walker/archive/refs/heads/master.zip

Declares an update source (https://github.com/wp-bootstrap/wp-bootstrap-navlist-walker), so updates arrive through the plugin's own updater.

From the readme

wp-bootstrap-navlist-walker Custom list navigation for WordPress themes utilizing the Bootstrap framework. The package includes a custom walker class & Less file with mixins. Walker Class Features + Structures menu HTML in a Bootstrap format + Standard WordPress classes removed + Child items are only rendered when parent is active + Structured to support Bootstrap Affix & Scroll Spy LESS Features + Custom list menu style + Support for light and dark menus + 12 Included color schemes + Mixin to quickly create custom color schemes This is a utility class that is intended to format your WordPress theme menu with the correct syntax and classes to utilize the Bootstrap navigation, and does not include the required Bootstrap JS files. You will have to include them manually. Installation Place wpbootstrapnavlistwalker.php in your WordPress theme folder /wp-content/your-theme/ Open your WordPress themes functions.php file /wp-content/your-theme/functions.php and add the following code: Usage Update your wpnavmenu() function in header.php to use the new walker by adding a "walker" item to the wpnavmenu array. Your menu will now be formatted with the correct syntax and classes

Read the full README on GitHub →