Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty link text for home link when only an image is displayed in the header #66

Open
rianrietveld opened this issue Jul 20, 2016 · 0 comments

Comments

@rianrietveld
Copy link

This issue was raised by Stephany Watts.

Presently the alt attribute in the theme outputs as blank for the header image. This is set up in header.php in the theme, on line 28 https://github.com/mor10/simone/blob/master/header.php#L28

As I recall, the reason for leaving the alt attribute blank was because the header image is set up to be a link to the home page, and the alt attribute would typically be an image description which would get confusing (imagine for example someone who sets up their header image as a picture of a dog. The first content link you'd hit in that circumstance would be the alt text "German Shepard with a tennis ball".)

This is, from my understanding, one of those challenging accessibility edge cases that bumps up against how people commonly use WordPress. In the short term, your easiest solution is to augment the code in header.php (in a child theme) to include the alt text. In the meantime, I'd love to hear what Rian thinks of this and what solution she would suggest.

IMHO the best solution would be to use the site title as alt for the header image.
And then, because on the home page this will be a redundant link, remove the link from the image there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant