Deliver the correct size for image gallery
-
Hi, I’m trying to optimize the page load of my articles, as they all have image galleries of more than 20-30 pics. I use the default gallery parameters (3 columns and thumbnail size).
I edited the responsive column layout, to never show a thumbnail size over 230px.
In WordPress Settings > Media I set a Thumbnail size of 230 x 230px.The image resolution delivered is always 400×400. How to edit it to 230px?
This is how the image is defined:
<div class="tcol-lg-4 tcol-md-4 tcol-sm-4 tcol-xs-6 tcol-ss-12 g_item"> <div class="grid_item kad_gallery_fade_in gallery_item"> <a href="https://example.com/wp-content/uploads/2016/10/image.jpg" data-rel="lightbox" class="lightboxhover"> <img src="https://example.com/wp-content/uploads/2016/10/image-400x400.jpg" alt="" srcset="https://example.com/wp-content/uploads//2016/10/image-230x230.jpg 230w, https://example.com/wp-content/uploads//2016/10/image60x60.jpg 60w, https://example.com/wp-content/uploads//2016/10/image-400x400.jpg 400w" sizes="(max-width: 400px) 100vw, 400px" class="light-dropshaddow" height="400" width="400"> </a> </div> </div>
Thanks in advance
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Deliver the correct size for image gallery’ is closed to new replies.