Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
iannacone committed Jun 4, 2020
1 parent f1fd6c1 commit b74bfbd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"autoload": {
"psr-4": {
"WPBootstrap\\": "includes/"
}
},
"files": [
"vendor/wp-bootstrap/wp-bootstrap-navwalker/class-wp-bootstrap-navwalker.php"
]
}
}
10 changes: 6 additions & 4 deletions template-parts/navigations/primary-menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@

<div id="primary-menu" class="collapse navbar-collapse">
<?php wp_nav_menu([
'theme_location' => 'primary-menu',
'container' => false,
'menu_class' => 'nav navbar-nav',
'walker' => new \WP_Bootstrap_Navwalker(),
'theme_location' => 'primary-menu',
'container' => false,
'depth' => 2, // 1 = no dropdowns, 2 = with dropdowns.
'menu_class' => 'nav navbar-nav',
'fallback_cb' => 'WP_Bootstrap_Navwalker::fallback',
'walker' => new \WP_Bootstrap_Navwalker(),
]); ?>
</div>

Expand Down

0 comments on commit b74bfbd

Please sign in to comment.