How to stop wordpress from injecting hard-coded style into image attachments with captions
I think you’re looking for the img_caption_shortcode_width filter, within the img_caption_shortcode(): /** * Filters the width of an image’s caption. * * By default, the caption is 10 pixels greater than the width of the image, * to prevent post content from running up against a floated image. * * @since 3.7.0 * * @see … Read more