[wp-trac] [WordPress Trac] #15926: Add alt attribute support for Custom Header functionality
WordPress Trac
noreply at wordpress.org
Mon Oct 6 10:10:07 UTC 2014
#15926: Add alt attribute support for Custom Header functionality
-------------------------------------------------+-------------------------
Reporter: jane | Owner:
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting
Component: Customize | Review
Severity: minor | Version: 3.0
Keywords: gci has-patch ux-feedback needs- | Resolution:
testing | Focuses:
| accessibility
-------------------------------------------------+-------------------------
Changes (by rianrietveld):
* keywords: gci has-patch ux-feedback needs-refresh => gci has-patch ux-
feedback needs-testing
Comment:
Why don't we solve the alt text like this:
The heading image is inside an <a> element linking to home_url( '/')
(except for twenty ten).
Because the alt text of the header image is actually a link text this way,
we could replace the empty alt="" into an alt="<?php bloginfo( 'name ' );
?>.
Using an alt text with a description of what's on the images is not a good
alt in this case.
For the themes:
Twenty fourteen: in header.php alt="<?php bloginfo( 'name ' ); ?>
Twenty thirteen: header image is a background image, so no alt text in
needed
Twenty twelve: in header.php alt="<?php bloginfo( 'name ' ); ?>
Twenty eleven: in header.php alt="<?php bloginfo( 'name ' ); ?>
Twenty ten: here the image is not inside a linkt to the homepage, so a
alt="" can be used here.
This way it works by default correctly.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/15926#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list