We're merging with GenerateBlocks! Learn more here.

[Support request] Changing ‘sizes’ image attribute

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Changing ‘sizes’ image attribute


Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #27688

    I am using WP Show Posts Pro to show a gallery of images in 3 columns. The images are displaying correctly with the ‘srcset’ attribute so the browser can download the most appropriately sized version of the image. However, the ‘sizes’ attribute is showing the WordPress default setting. E.g.

    sizes="(max-width: 1200px) 100vw, 1200px"

    This means the browser is downloading a version of the image suitable for the full-width of the viewport (100vw), even though it only requires an image to be a third of this (33vw).

    How can I change this attribute for my WP Show Posts images?



    Hi there,

    I believe this is possible with the newest version 1.2.0.

    But it’s still in alpha version so we can’t recommend using it on live sites unfortunately.

    If perhaps you could wait a bit for the beta version set for release this week, I believe that can be used for live sites.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.