CaoRuiming / bpr-wordpress

Wordpress site for brownpoliticalreview.org
Other
2 stars 3 forks source link

Fix redundant links on front page and category pages #69

Closed CaoRuiming closed 3 years ago

CaoRuiming commented 3 years ago

On the front page and search results page, there are many instances of redundant links, i.e. adjacent links that go to the same url. This is the case because article thumbnail images and article titles are linked separately even though they have the same link.

This is a problem because screen readers will read out these redundant links to users, adding unnecessary clutter to the browsing experience.

To fix this accessibility issue, we need to "expand" the <a> tag around each article thumbnail to also include the article title and remove the redundant <a> from around the article title.

Files to fix would include col-block-small.tpl.php, col-block.tpl.php, row-block.tpl.php, front-page.tpl.php, and category.tpl.php.

Don't forget about the redundant links in the carousels!