1
Atomic Image widget lacks support for the sizes HTML attribute
Source: elementor/elementor#36191 · opened by @flowrange
Description Hi, I'm adding support for responsive images on some random website. This involves setting a few attributes on img tags. First one is srcset, which tells the browser all the available image resolutions. The other is the sizes attribute, which hints how an image behaves at specific screen sizes. I won't go into further details as this is well documented (see WordPress official [Reponsive Images page]( As I have a few well-defined layouts where my images sit, I wanted to centralize those 2 attributes creation. WordPress offers 2 filters for this : wp_calculate_image_srcset & wp_calculate_image_sizes. Unfortunately, the new atomic image widget only support the first filter, wp_calculate_image_srcset. I need to manually add the size attribute in the widget settings section on each instance. This is not only tedious, but as the website's general look & feel is subject to change, I can't guarantee that I won't have to change this size attrib…
No pledges yet. Be the first to back this.
Comments
Similar requests
Atomic is a bomb of destruction for Wordpress
1 vote · 0 comments
Feature Request: V4 atomic navigation menu component
8 votes · 0 comments
Atomic Accordion element for Elementor Editor V4
10 votes · 0 comments
Component variants / Toggle Component Elements / Make all atomic element content fields empty
2 votes · 0 comments
Allow atomic buttons to contain a text wrapper span
1 vote · 0 comments
No comments yet.