Skip to content

Commit ef60914

Browse files
authored
Update README.md
1 parent b085fdb commit ef60914

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
# Bootstrap 5 WordPress navbar walker
22
[bootstrap-5-wordpress-navbar-walker](https://github.com/AlexWebLab/bootstrap-5-wordpress-navbar-walker)
33
## How to use:
4-
4+
1. Copy and paste the [bootstrap_5_wp_nav_menu_walker](https://github.com/AlexWebLab/bootstrap-5-wordpress-navbar-walker/blob/main/functions.php) class into the functions.php file of your theme
5+
2. Register a new menu by adding the follow code into the functions.php file of your theme
6+
```php
7+
register_nav_menu('main-menu', 'Main menu');
8+
```
9+
3. Add the following html code in your header.php file or wherever you want to place your menu.
510
```html
611
<nav class="navbar navbar-expand-md navbar-light bg-light">
712
<div class="container-fluid">
@@ -25,4 +30,4 @@
2530
</div>
2631
</div>
2732
</nav>
28-
```
33+
```

0 commit comments

Comments
 (0)