I’m seeking to add a simple border around all images (site wide, but mostly affects pages). I did figure out how to, by adding the following CSS:
.my-img-border {
border: 2px solid #000000;
}
As well as adding my-img-border to the Advanced area for the image.
However, there seems to be extra padding at the bottom of the image that the border goes around, seemingly the area where the caption is, even though I don’t put any text in for a caption. So the result is a white area below the image, with the border around it.
Is there a better way to add a border to an image that doesn’t include the caption area? Alternatively, I guess I could remove the caption area, but I’d like to avoid PHP if possible.
GeneratePress 2.2.2
GP Premium 1.7.8