caption shortcode is not adding the style and width
-
I am developing a site and when I add an image with a caption, the width of the caption does not get transferred to the div that is created for the caption.
Ex.
[caption id="attachment_192" align="alignleft" width="147" caption="Caption Text"]<img class="size-thumbnail wp-image-192" title="Image Name" src="https://example.com/wp-content/uploads/2009/03/img.jpg" alt="name" width="147" height="150" />[/caption]produces
<div class="wp-caption alignleft" id="attachment_192"><img height="150" width="147" alt="Image Name" src="https://example.com/wp-content/uploads/2009/03/img.jpg" title="Image Name" class="size-thumbnail wp-image-192"><p class="wp-caption-text">Caption Text</p></div>
Note the missing style="width:147px;" in the wp-caption div. Any help would be appreciated.
- The topic ‘caption shortcode is not adding the style and width’ is closed to new replies.