Skip to content

Commit

Permalink
Update bootstrap4-navwalker.php
Browse files Browse the repository at this point in the history
  • Loading branch information
MWDelaney authored Oct 14, 2020
1 parent 0751a03 commit 3a19885
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bootstrap4-navwalker.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ public function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0)
// If the item has children, add atts to the <a>.
if (isset($args->has_children) && $args->has_children && 0 === $depth && $args->depth > 1) {
$atts['href'] = '#';
$atts['data-href'] = $item->url;
$atts['data-toggle'] = 'dropdown';
$atts['aria-haspopup'] = 'true';
$atts['aria-expanded'] = 'false';
Expand Down

0 comments on commit 3a19885

Please sign in to comment.