Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #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

    #1358889

    Hey 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,
    Mike

    #1358907

    Hi Mike!

    Here you go: https://goodwillyoungstown.org/

    Thanks!

    Becky

    #1358983

    Hi,

    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,
    Ismael

    #1359582

    Hello 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!

    #1359634

    Hi,

    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,
    Ismael

    #1359692

    Hi 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

    #1359842

    Hi,
    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:
    2022-07-29_001.jpg
    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,
    Mike

    #1360201

    Hi 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!

    #1360533

    Hi Mike!

    No luck with adding that PHP to the site and getting the screen reader to function. Any other ideas?

    Thanks so much!

    Becky

    #1360611

    Hi,
    Thanks for the feedback, assuming that you have added the title to each menu item:
    2022-08-04_001.jpg
    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,
    Mike

    #1360660

    Thanks 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!

    #1361283

    Hi 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

    #1361344

    Hi,
    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,
    Mike

    #1361350

    Hi 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

    #1361393

    Hi,
    Thanks for the feedback, we will leave this open to hear back from you.

    Best regards,
    Mike

    #1365157

    Hi 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

    #1365180

    Hi,
    Thanks for the update, we will leave this open to hear back from you.

    Best regards,
    Mike

    #1368506

    Hi 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

    #1368508

    Hi,
    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

Viewing 20 posts - 1 through 20 (of 20 total)
  • The topic ‘Accessibility for Visually Impaired’ is closed to new replies.