Wrong image size rendering in img tag
-
I have created a child theme of TwentyTen and set the large image size to 650px in Media Settings, which appears to work correctly. If I check the properties in Firefox the image is the correct width. However, the code generated for the img tag has width=640. This is causing large images to overlap the caption frame because WordPress adds 10px to the img width via css to the caption wrapper div and I can’t figure out where the 640 is being generated.
<div id="attachment_30607" class="wp-caption alignleft" style="width: 650px"> <img class="size-large wp-image-30607" width="640" height="425" alt="" src="https://www.xxx/wp-content/uploads/2014/06/xxx-650x432.jpg"> <p class="wp-caption-text">Some text here</p> </div>
When I insert an image into a post the Size Large option displays 640 x ???, but as I said it is actually 650. I did previously have the large image set to 640px, but should that not be overwritten?
Any help would be appreciated.
- The topic ‘Wrong image size rendering in img tag’ is closed to new replies.