[wp-trac] [WordPress Trac] #21389: Retina theme custom headers
WordPress Trac
noreply at wordpress.org
Wed Nov 4 22:03:30 UTC 2015
#21389: Retina theme custom headers
-------------------------------+------------------------
Reporter: nacin | Owner: joemcgill
Type: task (blessed) | Status: assigned
Priority: normal | Milestone: 4.4
Component: Customize | Version:
Severity: normal | Resolution:
Keywords: responsive-images | Focuses:
-------------------------------+------------------------
Comment (by Otto42):
The proposal I made 3 years ago was along the same lines as what @azaozz
is saying. Basically, we need a wrapper function for themes to use to
generate the entire IMG tag. I suggested get_header_image_tag() and
header_image_tag(), although those names might not be exactly right.
Having a helper function for themes to use to generate this greatly
simplifies the problem for the case of "fixed width" header.
Flexible width headers is still on the table though. If a theme chooses to
support these, then having some way for it to specify breakpoints on the
width would be nice (essential, really). A theme can specify desired
widths, and the header uploader/cropper can generate those specific widths
for that header image only, instead of simply using all the normal image
widths.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/21389#comment:27>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list