Site logo

Archived topic

Adjust Spacing After Blog Post Images in Articles

6 replies · Started by canberk on November 3, 2022

Viewing posts 1–7 of 7

Hello,

After updating Generatepress, the space between the photos and the sentences disappeared. There is no problem with the main images, but the gap between the images in the blog and the photo is almost zero. How can I fix it?

Example: https://imgur.com/a/a3nOcHG

Hi there,

i assume you updated to WP 6.1 ? As it looks like Core made some changes to how the its HTML/Classes/CSS are output.

Try adding this CSS:

figure img {
    margin-bottom: 1.5em;
}

Thank you for your quick response David, it worked.

Glad to hear that!

It also works for me, but It also happens with youtube video. How would be the selector to do the same?

Thank you.

and if you write a description under the image, it doesn't work well. The space should be after that text, not before it. Any idea to fix this? Thank you.

Can you open a new topic for your question and link us to the page in question?

Thanks!

This archived topic is closed to new replies.