i missing the role=menuitem in the for
i think it is not necessary? is ti wright? because the users use a screenreader.
Hi,
Thank you for the inquiry.
The following should script should add the role attribute to mobile/burger menu items. Please add it in the functions.php file.
function ava_custom_script() {
?>
<script>
(function($) {
$(document).ready(function() {
$('#top #av-burger-menu-ul li').attr('role', 'menuitems');
});
}(jQuery));
</script>
<?php
}
add_action('wp_footer', 'ava_custom_script');
Best regards,
Ismael
Thanks!