Archived topic
Padding under images and videos
5 replies · Started by Scott on November 6, 2022
Hi
A recent issue that I think arose with the latest WordPress update.
All images and youtube embeds have lost their bottom padding.
I added the below CSS to fix the image issue but not sure how to do the same for videos (or why I needed to add this for images as I imagine there should be default padding?)
/* Padding under images */
figure.wp-block-image,
.gb-grid-wrapper figure.wp-block-image,
div.wp-block-image,
.gb-grid-wrapper div.wp-block-image {
margin-bottom: 1.5em ;
}
Hi Scott,
It's WordPress default. I believe they removed it. Try adding .wp-block-embed as a selector in your custom CSS.
Example:
figure.wp-block-image, .gb-grid-wrapper figure.wp-block-image, div.wp-block-image, .gb-grid-wrapper div.wp-block-image, .wp-block-embed {
margin-bottom: 1.5em ;
}
Thanks Fernando
You're welcome Scott!
Hello, I also have this issue and want to know if there is a way to achieve this site-wide (no manual action) without adding extra CSS? I feel like the GP theme should automatically do this?
Hi Benjamin,
That was defined by WordPress and they removed it.
You will have to use CSS now.