WP Manifestindependent plugin directory
manifest / themes / bootstrap-navbar

Bootstrap Navbar

Make a Wordpress menu compatible with Bootstrap Navbar

by Mathew Callaghan · github.com/mathewcallaghan/bootstrap-navbar · website

0stars
0forks

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/mathewcallaghan/bootstrap-navbar/archive/refs/heads/master.zip

Readme

Wordpress Bootstrap Navbar

Make a Wordpress menu compatible with Bootstrap Navbar

This plugin will add the CSS classes required to display a Wordpress menu as a Bootstrap Navbar. A complete navbar requires Bootstrap 4 and the navbar structure in your theme.

Example
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<?php
    wp_nav_menu( array(
    'theme_location' => 'your-menu',
    'menu_class' => 'navbar-nav mr-auto',
    'container' => ''
    ) );
?>
</nav>
Dividers

A divider can be added to drop down menus by adding a Custom Link with a class of dropdown-divider The URL and Link Text will not be shown in the menu.

Disabled Links

Add the class disabled to the menu link to disable it.

Read the full README on GitHub →