-
AuthorPosts
-
July 20, 2022 at 2:50 am #1358840
Hello,
I’m working with a client who is requesting that the main navigation is able to be read by a screen reader for the visually impaired. Right now, the screen reader is reading the main navigation as numbers rather than the titles of the page. The client primarily uses the JAWS screen reader on the site.
On their current site (which I do not have access to, nor do they), the screen reader functions as it should. Is there some sort of plugin that I need to add to the site so that the screen reader can access it properly?
Thank You!
Becky
July 20, 2022 at 12:43 pm #1358889Hey bbertuzzi7,
Thanks for your question, my research points to JAWS 15 reading the link title, which I see is in place on the site that you linked to. Please link to the site that the main navigation links are read correctly by JAWS so we can compare the difference.Best regards,
MikeJuly 20, 2022 at 4:05 pm #1358907July 21, 2022 at 10:04 am #1358983Hi,
Thank you for the update.
We can apply an aria-label attribute to the menu items by adding this code in the functions.php file.
add_filter('walker_nav_menu_start_el', function($item_output, $item, $depth, $args) { $item_output = str_replace('<a href=','<a aria-label="' . $item->title . '" href=', $item_output); return $item_output; }, 10, 4);
Let us know if that helps.
Best regards,
IsmaelJuly 27, 2022 at 5:40 pm #1359582Hello Ismael,
Sorry for the delayed response. This php code did not work to get the screen reader to pick up everything on the pages. From my client,
“The menu list at the top (who we are, how we help, etc.) cannot be reached.Also, the increase don’t, darken background, etc are at the top of the links page for Jaws.
Now he was able to move his mouse over with jaws to reach the top, but it did not allow for him to click underneath each tab for the other subsets (like radio reading, voucher program, etc.)”
Is there something else that we can try to get the screen reader to work on this site?
Thanks!
July 28, 2022 at 5:59 am #1359634Hi,
It seems to be working correctly on our end. We provided a screenshot of the notifications that we get when hovering or when tabbing through the menu items using VoiceOver on MacOS. Unfortunately, we do not have access to Jaws at the moment.
Screenshot: https://1drv.ms/u/s!AjjTfXSRbKTvwHc78YPYJD5Ro8z5?e=kbqZON
We noticed that you replaced the aria-label with the title attribute. Is this working?
Thank you for your patience.
Best regards,
IsmaelJuly 28, 2022 at 1:09 pm #1359692Hi Ismael,
It needs to work on the Jaws screen reader as that is what the majority of the visually impaired users will view it on. Forgive my ignorance, but I don’t know what the aria-label is. What I did do yesterday was go through the entire media library and make sure that the alt tag, title, caption and description were all filled out.
Thanks!
Becky
July 29, 2022 at 1:06 pm #1359842Hi,
Thank you for your patience, the aria-label is the attribute used for accessibility, typically screen readers will read the “title”, “alt”, or “aria-label” attributes:
While we don’t have access to “Jaws” this chart of the Screen Reader Output seems to indicate that “Jaws” looks for the Anchor Text first and I note that on your original site the main menu links only have Anchor Text, with no “title”, “alt”, or “aria-label” attributes.
The difference with our theme is that the Anchor Text is wrapped in a “span” and is not a direct Anchor Text.
Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:function unwrap_main_menu_text_for_jaws() { ?> <script> (function($){ $('.avia-menu-text').contents().unwrap(); })(jQuery); </script> <?php } add_action('wp_footer', 'unwrap_main_menu_text_for_jaws');
and check with your “Jaws” software.
Best regards,
MikeAugust 1, 2022 at 9:10 pm #1360201Hi Mike! Sorry for the delayed response, I was out of town over the weekend. Thanks for sending this information over. I’m going to try adding this PHP and I’ll let you know the outcome. Appreciate all of the help!
August 3, 2022 at 7:29 pm #1360533Hi Mike!
No luck with adding that PHP to the site and getting the screen reader to function. Any other ideas?
Thanks so much!
Becky
August 4, 2022 at 1:08 pm #1360611Hi,
Thanks for the feedback, assuming that you have added the title to each menu item:
Try adding this code to the end of your functions.php file in Appearance ▸ Editor:function custom_aria_label_script() { ?> <script> window.addEventListener('DOMContentLoaded', function() { (function($){ $('#avia-menu li').each(function() { $(this).find('a').attr('aria-label', $(this).find('a').attr('title')); }); })(jQuery); }); </script> <?php } add_action('wp_footer', 'custom_aria_label_script');
and then test with your “Jaws”
Best regards,
MikeAugust 4, 2022 at 4:33 pm #1360660Thanks Mike! I do have Title Attributes on all menu items. I’ll give this code a shot and let you know. Again, thanks for all of the help with this!
August 9, 2022 at 8:21 pm #1361283Hi Mike,
Still no luck with that last piece of PHP code. I tried to call JAWs to talk with their technical support team, but the rep told me to visit https://www.tpgi.com/. This looks like a software tool to manage accessibility. Is there a plugin that can be downloaded to assist with this?
Thanks!
Becky
August 10, 2022 at 12:42 pm #1361344Hi,
Thanks for the feedback, the link seems to be a paid service not a tool. I see that your main menu links now have the title, aria-label, and anchor text, and JAWs is suppose to read each of these, so I’m not sure why yours is not. Perhaps there is a setting disabled on your JAWs, such as disabled javascript? Or it’s reading the page before it’s fully loaded.
These are guesses, but in the past I have helped other users of JAWs with other elements and they didn’t say they couldn’t use JAWs on the main menu. But unfortunately there doesn’t seem to ba a trial version of JAWs for us to test with, so we can’t test.
There are other accessibility plugins but I don’t have any experience with these and don’t know which one may help, I assume each of these would do the same as we have by adding the title, aria-label, and anchor text to the main menu links, if you test any of these plugins please remove the 3 scripts that we have posted above so there won’t be any conflicts.Best regards,
MikeAugust 10, 2022 at 1:40 pm #1361350Hi Mike,
Thanks for all of your help with this. I’ll reach out to my client and see about the disabled setting. I’ll also remove the PHP before installing the plugin. Appreciate all of your hard work in helping me to troubleshoot this.
Cheers!
Becky
August 11, 2022 at 12:52 am #1361393Hi,
Thanks for the feedback, we will leave this open to hear back from you.Best regards,
MikeSeptember 15, 2022 at 3:59 pm #1365157Hi Mike!
I wanted to give you an update on this issue. We’ve tried every piece of code you’ve recommended with no luck. My lead developer is planning to custom code the menu navigation in the hopes that it will be picked up by the screen reader. I don’t think that this is necessarily and Enfold issue, as we’ve tested the site on other screen readers and it’s being picked up, but an issue with the screen reader being used by the client (JAWS). The technical support team for JAWs was pretty much worthless when I tried reaching out to them.
The menu should be coded by the end of next week, so I’ll report back with the outcome. Again, thanks for all of the help as we troubleshoot this.
Cheers!
Becky
September 15, 2022 at 6:34 pm #1365180Hi,
Thanks for the update, we will leave this open to hear back from you.Best regards,
MikeOctober 12, 2022 at 2:10 am #1368506Hi Mike,
I was finally able to get a copy of the screen reader that my client was using. I tested it on the site and it worked perfectly. So the issue wasn’t with the site at all – it’s with their version of the screen reader. They will be contacting technical support to determine if they need a version update. You can close this thread. Thanks so much for all of your help!
Becky
October 12, 2022 at 3:33 am #1368508Hi,
Glad to hear, thanks for letting us know, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Accessibility for Visually Impaired’ is closed to new replies.