Skip to content

mathewcallaghan/bootstrap-navbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Make a Wordpress menu compatible with Bootstrap Navbar

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages