Skip to content

Commit 7ab1552

Browse files
authored
Update functions.php
1 parent df6cd3e commit 7ab1552

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

functions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0)
6363
$attributes .= !empty($item->url) ? ' href="' . esc_attr($item->url) . '"' : '';
6464

6565
$active_class = ($item->current || $item->current_item_ancestor) ? 'active' : '';
66-
$nav_link_class = ( $depth > 0 ) ? 'dropdown-item nav-link ' : 'nav-link ';
66+
$nav_link_class = ( $depth > 0 ) ? 'dropdown-item ' : 'nav-link ';
6767
$attributes .= ( $args->walker->has_children ) ? ' class="'. $nav_link_class . $active_class . ' dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"' : ' class="'. $nav_link_class . $active_class . '"';
6868

6969
$item_output = $args->before;
70-
$item_output .= ($depth > 0) ? '<a' . $attributes . '>' : '<a' . $attributes . '>';
70+
$item_output .= '<a' . $attributes . '>';
7171
$item_output .= $args->link_before . apply_filters('the_title', $item->title, $item->ID) . $args->link_after;
7272
$item_output .= '</a>';
7373
$item_output .= $args->after;

0 commit comments

Comments
 (0)