• Hi, the generated code create accessibility issue for people with screen reader that find every link as “View posts ->.

    <a href="https://www.sitename.com/author/XXX/" class="authors-list-item-link">View Posts →</a>

    should be

    <a href="https://www.sitename.com/author/XXX/" aria-label="View XXX's Posts" class="authors-list-item-link">View Posts →</a>

    • This topic was modified 3 years, 11 months ago by rscano.
    • This topic was modified 3 years, 11 months ago by rscano.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WPKube

    (@wpkube)

    Hi @rscano

    Thanks for letting us know, we’ll get that sorted out in the next update, should be released by the end of this week.

    Thread Starter rscano

    (@rscano)

    Thank you! Actually I’ve solved with this solution that don’t need to change translation.

    <?php if ( $settings['show_link'] == 'yes' ) : ?>
                                <a href="<?php echo $posts_url; ?>" class="authors-list-item-link" aria-label="<?php echo esc_attr( $name ) ?> - <?php esc_html_e( 'View Posts &rarr;', 'authors-list' ); ?>"><?php esc_html_e( 'View Posts &rarr;', 'authors-list' ); ?></a>
                            <?php endif; ?>
    Plugin Author WPKube

    (@wpkube)

    You’re welcome and thank you for sharing the code.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘accessibility issue’ is closed to new replies.