Alt and Title in WP menu items not reflecting on the front-end
The Alt/Title is not picking up the Title Attribute text inserted in the
WP Menu item, it's only reflecting the Navigation Label
Example:
Navigation Label
Home
Title Attribute
This is the home button
On the front-end, the title attribute is dismissed and we only see "Home" as a title attribute
I narrowed it down to the wp_bootstrap_navwalker file, it seems this is the code used to get the Title/Alt info from the
WP menu but yet it does not show the proper Title/Alt that is assigned in the native
WP menu item
if ( ! empty( $item->attr_title ) )
$item_output .= '<a'. $attributes .'><i class=" ' . esc_attr( $item->attr_title ) . '"></i> ';
else
$item_output .= '<a'. $attributes .'>';
$item_output .= $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after;
$item_output .= ( $args->has_children && 0 === $depth ) ? ' <span class="caret"></span></a>' : '</a>';
$item_output .= $args->after;
$output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args );
}
}
What needs to be changed/added to allow the Alt/Title of the menu item to reflect on the front-end?