Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Generosus

    (@generosus)

    Update:

    OK, so we managed to accomplish the above using JavaScript. The following JS code was added to our website’s “Space before </body>“:

    <script type="text/javascript">
        window.onload = function() 
        {
            var alinks = document.getElementsByClassName("wpd-load-comments wpd-prim-button");
            for (var i = 0; i < alinks.length; i++) {
                alinks[i].setAttribute("title", "View Comments");
                alinks[i].setAttribute("rel", "noopener noreferrer nofollow");  
            }
            var alinks = document.getElementsByClassName("wc_comm_submit wpd_not_clicked wpd-prim-button");
            for (var i = 0; i < alinks.length; i++) {
                alinks[i].setAttribute("title", "Post Comment");
                alinks[i].setAttribute("rel", "noopener noreferrer nofollow");  
            }
        }
    </script>
    

    Unfortunately, the above increases our “Unused JS” payload on pages that do not utilize wpDiscuz.

    So, is there an alternate way to do this? Say, via CSS Rule?

    Thank you!

    Plugin Support gVectors Support

    (@gvectorssupport)

    It’s added in the latest version (v. 7.6.3) of the wpDiscuz plugin.

    Thread Starter Generosus

    (@generosus)

    Thank you. Resolved!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Accessibility | Aria-Label Missing from Comments Button’ is closed to new replies.