[wp-trac] [WordPress Trac] #63838: Site logo block should provide a way to specify alt text

WordPress Trac noreply at wordpress.org
Mon Aug 18 17:40:57 UTC 2025


#63838: Site logo block should provide a way to specify alt text
-----------------------------+------------------------------
 Reporter:  Fab1en           |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Media            |     Version:  6.8.2
 Severity:  normal           |  Resolution:
 Keywords:  needs-test-info  |     Focuses:  accessibility
-----------------------------+------------------------------

Comment (by rishabhwp):

 Hey @Fab1en,

 Thanks for reporting this! I tested the Site Logo block and you're spot on
 about the missing alt text field.

 Here's what I found:

 1) This should be moved to Gutenberg - The Site Logo block is part of
 Gutenberg, not WordPress Core, so this issue belongs in the Gutenberg
 GitHub repo.

 2) Alt text does work, but it's hidden - After examining the code, I found
 that the Site Logo block does use alt text, but it pulls it from the
 alt_text field of the media attachment in the WordPress Media Library
 (check site-logo/edit.js
 [https://github.com/WordPress/gutenberg/blob/trunk/packages/block-
 library/src/site-logo/edit.js#L528]). This means that if you set alt text
 when uploading the logo to the Media Library, it will be used. If alt text
 is not set, the site title is used as a fallback.

 3) Main accessibility concern - If both the Media Library alt text and the
 site title are empty, then the alt text will be completely empty, which
 could cause accessibility issues.

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


More information about the wp-trac mailing list