You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dropdown depth in menus is not auto-calculating and as a result, parent anchor links are not giving IDs or aria labels. If I manually specify a depth in arguments, the nav works as intended. Working example:
public function primarymenu() {
$args = array(
'theme_location' => 'primary_navigation',
'menu_class' => 'navbar-nav',
'fallback_cb' => '__return_false',
'depth' => 2,
'walker' => new \App\wp_bootstrap5_navwalker()
);
return $args;
}
@jet-agency I can add a default depth, but you are correct that you need to set a depth. Ill work on setting a default depth, but for now ill update the readme to reflect this.
Dropdown depth in menus is not auto-calculating and as a result, parent anchor links are not giving IDs or aria labels. If I manually specify a depth in arguments, the nav works as intended. Working example:
Using Sage 5 with the following branch to extend BS5 - https://github.com/strarsis/sage/tree/webpack5-bootstrap5
The text was updated successfully, but these errors were encountered: