[wp-trac] [WordPress Trac] #44655: Introduce alternative srcset option for custom logo

WordPress Trac noreply at wordpress.org
Fri Jul 27 15:09:56 UTC 2018


#44655: Introduce alternative srcset option for custom logo
-------------------------+------------------------------
 Reporter:  mrmadhat     |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Media        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by swissspidy):

 > It would be good if we could specify the type of srcset to use e.g use
 1x, 2x, 3x instead of 350w, 500w...

 Have you tried `add_image_size()` with both 186x38 and 372x76? If
 WordPress sees that the image is available in both sizes, it will print
 the srcset accordingly.

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


More information about the wp-trac mailing list