[wp-trac] [WordPress Trac] #46124: Allow setting custom image alt text in custom header image

WordPress Trac noreply at wordpress.org
Mon Aug 26 10:33:33 UTC 2019


#46124: Allow setting custom image alt text in custom header image
-------------------------------------------------+-------------------------
 Reporter:  webmandesign                         |       Owner:  audrasjb
     Type:  enhancement                          |      Status:  accepted
 Priority:  normal                               |   Milestone:  5.3
Component:  Media                                |     Version:  5.0.3
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-refresh 2nd-opinion  |     Focuses:
  needs-design-feedback                          |  accessibility
-------------------------------------------------+-------------------------

Comment (by afercia):

 Not sure there's an UI to edit the custom header image alt text.

 Testing with Twenty Seventeen
 - customiser > Header Media > Add new image
 - the media modal dialog "Choose Image" opens
 - select an image
 - I can edit the alt text in the right sidebar > Attachment details
 - however, once inserted, the header image has always the site name as alt
 text, in my case: `alt="WordPress develop"`

 @nrqsnchz checking the discussion on Slack > design I see you mentioned
 you successfully set the alt text, can you please share more details?

 Worth also mentioning that even if this worked, editing the alt text from
 the media modal dialog isn't ideal because it changes the alt text
 "globally". There should be a UI to edit the alt text only in for the
 Header context.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46124#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list