Deactivating plugin makes images expand to 100%
-
I have had the plugin installed for sometime – updating WordPress and the plugin as time passes.
I deactivated the plugin while inserting a number of smaller images sometime back. I did not want the unnecessary code on the pages.
Tonight I clicked on a couple of expanding read more divs containing product reviews and was highly annoyed that all the images within those divs were now expanded to 100% width. The images, only around 320px wide, were totally destroying the layout being displayed at 100% wide.
So I turned the plugin back on now they display back to normal size again.
I am certain this issue has somehow occurred since an update. As I have not opened the expanding divs for some weeks I can not pin point an exact time or upgrade this started happening.
example of code (identification removed) inserted with the plugin and Add Media
<img class="alignright wp-image-1113 size-full" src="https://www.xxxxx.com/wp-content/uploads/xxxxx.png" srcset="https://www.xxxxx.com/wp-content/uploads/xxxxx-153x300.png 153w, https://www.xxxxx.com/wp-content/uploads/xxxxx.png 307w" width="307" height="602" data-sizes="(max-width: 307px) 100vw, 307px" />
Obviously at 307px wide it was not necessary to have the srcset code inserted. The very reason why I turned the plugin off for future small images. But I didn’t expect the 100% width display to suddenly start happening.
Above is an issue – the following is a suggestion – It would be much better to have a checkbox within the Add Media section that would only add the code if selected. It is only suitable for large images not every image.
- The topic ‘Deactivating plugin makes images expand to 100%’ is closed to new replies.