Image width wider than blog when using captions
-
Hi all,
When I add captions to images, code is inserted that creates a div with width 1000 at the element level. Here’s an example:
Sample blog postYou can see that the images without captions are formatted correctly. When I look at the html from inside the editor, I see:
[caption id="attachment_638" align="aligncenter" width="1000" caption="Banana bread and chips were vital to the DAC processing"]<a href="https://blog.wingedvictorydesign.com/wp-content/uploads/2009/05/whiteboard-concept-1.jpg"><img class="size-full wp-image-638" title="concept" src="https://blog.wingedvictorydesign.com/wp-content/uploads/2009/05/whiteboard-concept-1.jpg" alt="Banana bread and chips were vital to the DAC processing" width="1000" height="750" /></a>[/caption]
So it seems that the caption shortcode is adding a width of 1000, rather than the maximum image width specified for the blog.
How do I fix this? Is it a theme problem (I’m using Elegant Grunge), or a core wordpress code problem, or what?
Thanks!
- The topic ‘Image width wider than blog when using captions’ is closed to new replies.