File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff 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
7070wp_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```
You can’t perform that action at this time.
0 commit comments