tevkori_get_srcset_string() max size with additional size not working?
-
Hi.
I’ve added a few “breakpoint” specific thumbnail sizes in my functions.php:
add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size(320, 320); add_image_size( 'palm', 568 ); add_image_size( 'lap', 1024 ); add_image_size( 'desk', 1400 );
however, when I call
tevkori_get_srcset_string($imgId, 'lap')
I get ALL of the image sizes being output in the srcset.note: ‘medium’ works fine, but the custom sizes don’t seem to.
Is this right?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘tevkori_get_srcset_string() max size with additional size not working?’ is closed to new replies.