You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that when you just use an array global $glob_sce_settings; /* Image sizes */ $glob_sce_settings['rwd_image_sizes']['s-team 2x'] = array( array(275, 275, array('center', 'center')) );
the generated img tag on the page does not have 'src' attribute, which is required by Internet Explorer to show an image on the page. <picture class="attachment-s-team size-s-team wp-post-picture"> <img srcset="//localhost:3000/wp-content/uploads/2019/11/photo-1500648767791-00dcc994a43e-e1574685299994-275x275.jpeg, //localhost:3000/wp-content/uploads/2019/11/photo-1500648767791-00dcc994a43e-e1574685299994-550x550.jpeg 2x" alt=""> </picture>
It would be wonderful if it could be improved in the next version. Thanks
The text was updated successfully, but these errors were encountered:
Hi,
I noticed that when you just use an array
global $glob_sce_settings;
/* Image sizes */
$glob_sce_settings['rwd_image_sizes']['s-team 2x'] = array(
array(275, 275, array('center', 'center'))
);
or one image size
global $glob_sce_settings;
/* Image sizes */
$glob_sce_settings['rwd_image_sizes']['s-team 2x'] = array(
'xs' => array(
275, 275, array('center', 'center'),
'picture' => '<img src="{single-src}" srcset="{src}" alt="{alt}">', // mobile-first strategy picture img.
'bg' => '', // mobile-first strategy bg.
'bg_retina' => '@media {dpr}, {min_res}',
'srcset' => '{w}w',
'sizes' => '{w}px',
),
);
the generated img tag on the page does not have 'src' attribute, which is required by Internet Explorer to show an image on the page.
<picture class="attachment-s-team size-s-team wp-post-picture">
<img srcset="//localhost:3000/wp-content/uploads/2019/11/photo-1500648767791-00dcc994a43e-e1574685299994-275x275.jpeg, //localhost:3000/wp-content/uploads/2019/11/photo-1500648767791-00dcc994a43e-e1574685299994-550x550.jpeg 2x" alt="">
</picture>
It would be wonderful if it could be improved in the next version. Thanks
The text was updated successfully, but these errors were encountered: