Skip to content
Make a Wordpress menu compatible with Bootstrap Navbar
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bootstrap-navbar
.gitignore
LICENSE
README.md

README.md

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.

You can’t perform that action at this time.