Add space around image caption once border is eliminated?
-
I’m trying to add space around the image+caption units that I add to Posts and Pages by using Add Media to a Text Block within the WYSIWYG Visual Editor.
I have the Enfold theme. On this theme as installed, WordPress’s default style for images+captions features the caption below the image and a visible border around the entire image+caption unit.
I wanted to get rid of the visible border. I got rid of it by using this CSS code recommended on the Enfold Support Forum:
div .wp-caption {
border: none;
}But now that there is no border, the text wrapping around the image+caption is wrapped too tightly for my website’s style. I want to be able to add space between the wrapping text and the image+caption unit. I want to add the space sometimes on the bottom or top of the image, sometimes on the sides.
I have the Advanced Image Styles plugin. But when I use it to add margins, it reads only the image, not the image+caption unit. So for instance when I add a bottom margin, space gets added between the image and the caption, not between the image+caption unit and the wrapping text.
Example: the photo of the glass vases on this page. I have inserted 50px bottom margin using Advanced Image Styles.
https://marketvolt.net/mac/missouri-arts-awards-2016/I tried changing the code to “border: hidden” but it has no effect.
Without the ability to adjust the spacing around the entire image+caption unit, the caption feature is essentially useless.
- The topic ‘Add space around image caption once border is eliminated?’ is closed to new replies.