Opened 6 years ago
Closed 6 years ago
#46185 closed defect (bug) (duplicate)
Custom logo looses alt text when cropped in customizer
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.5 |
Component: | Customize | Keywords: | |
Focuses: | Cc: |
Description
When adding a site logo via the customizer and using the cropping function, the custom logo looses its ability to have an alt text set and displayed on the site.
From what I can see this happens because the post meta for custom_logo is set to the new cropped image, and that image does not inherit the alt text from the original uploaded image.
There is no way to set a new alt text for this cropped image through the media library.
Change History (2)
Note: See
TracTickets for help on using
tickets.
get_theme_mod( 'custom_logo' ) returns the ID of the cropped image, not the original image. The cropped image does not have the alt text from the original image, and no alt text can be assigned the cropped image through media library.