Skip to content

Commit 9064ab9

Browse files
committed
Docs fix: correct old reference to depth handling in inline comeent
1 parent e662885 commit 9064ab9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ Add or update any `wp_nav_menu()` functions in your theme (often found in `heade
6868
```php
6969
<?php
7070
wp_nav_menu( array(
71-
'theme_location' => 'primary',
72-
'depth' => 1, // 1 = with dropdowns, 0 = no dropdowns.
73-
'container' => 'div',
74-
'container_class' => 'collapse navbar-collapse',
75-
'container_id' => 'bs-example-navbar-collapse-1',
76-
'menu_class' => 'navbar-nav mr-auto',
77-
'fallback_cb' => 'WP_Bootstrap_Navwalker::fallback',
78-
'walker' => new WP_Bootstrap_Navwalker()
71+
'theme_location' => 'primary',
72+
'depth' => 2, // 1 = no dropdowns, 2 = with dropdowns.
73+
'container' => 'div',
74+
'container_class' => 'collapse navbar-collapse',
75+
'container_id' => 'bs-example-navbar-collapse-1',
76+
'menu_class' => 'navbar-nav mr-auto',
77+
'fallback_cb' => 'WP_Bootstrap_Navwalker::fallback',
78+
'walker' => new WP_Bootstrap_Navwalker(),
7979
) );
8080
?>
8181
```

0 commit comments

Comments
 (0)