• Resolved zenkitty

    (@zenkitty)


    I’ve been testing out the plugin on a handful of product images, and had the images resized and working fine. However, after refreshing the shop page a few times, one of the images reverted back to the original thumbnail size. So I deleted the image and reuploaded it. I refreshed the page, and the thumbnail was showing correctly again.

    But then, another image reverted to its original size. So again, I deleted and reloaded it. This fixed it – until another refresh. This keeps happening, with different images (or one of the previous ones) reverting back after a page refresh – and its driving me crazy! ??

    I don’t know whether it helps, but the html for an image displaying as its original size is:

    <img src="https://www.xxxxxx.net/wp-content/uploads/EarthWarrior.jpg" class="attachment-woocommerce_thumbnail size-woocommerce_thumbnail" alt="Earth Warrior" loading="lazy" width="260" height="399">

    while for one displaying as it should is:

    <img src="https://www.xxxxxx.net/wp-content/uploads/marjorie-1-260x260.jpg" class="attachment-woocommerce_thumbnail size-woocommerce_thumbnail" alt="Marjorie" loading="lazy" srcset="https://www.xxxxxx.net/wp-content/uploads/marjorie-1-260x260.jpg 260w, https://www.xxxxxx.net/wp-content/uploads/marjorie-1-300x300.jpg 300w, https://www.xxxxxx.net/wp-content/uploads/marjorie-1-100x100.jpg 100w" sizes="(max-width: 260px) 100vw, 260px" width="260" height="260">

    I’m using Oxygen Builder, so I suspect that probably has something to do with it! ?? I’m just not sure why only it only happens to one random image at a time.

    Have you ever come across this issue before, or do you know of any problems with using your plugin with Oxygen?

    Any suggestion on how to resolve this issue would be much appreciated!

    Thanks,
    Debbie

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Nabil Lemsieh

    (@nlemsieh)

    Hi @zenkitty

    Are you using any images-related plugin?

    In the meantime, make sure you disable WooCommerce background regeneration by adding this code to your child theme’s functions.php or use the plugin “Code Snippets”:

    add_filter( 'woocommerce_background_image_regeneration', '__return_false' );

    Best regards,
    Nabil

    Thread Starter zenkitty

    (@zenkitty)

    Thanks so much for the fast response!

    Adding that bit of code in seems to have done the trick ??

    Thanks again,
    Debbie

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘images randomly reverting back to original size’ is closed to new replies.