diff --git a/inc/class-wp-bootstrap-navwalker.php b/inc/class-wp-bootstrap-navwalker.php index 16af9bc..90c0342 100644 --- a/inc/class-wp-bootstrap-navwalker.php +++ b/inc/class-wp-bootstrap-navwalker.php @@ -206,6 +206,8 @@ if ( ! class_exists( 'Understrap_WP_Bootstrap_Navwalker' ) ) { } } + $atts['aria-current'] = $item->current ? 'page' : ''; + // update atts of this item based on any custom linkmod classes. $atts = self::update_atts_for_linkmod_type( $atts, $linkmod_classes ); // Allow filtering of the $atts array before using it.