Site logo

Archived topic

Adding padding under image gallery

3 replies · Started by Sophie on May 30, 2022

Viewing posts 1–4 of 4

Hi,

It seems that there has been some update that has affected the image galleries on our site. They no longer have any padding beneath the galleries. Is there a way I can add some padding below the gallery, so between the images and text. The space between the images on the most part isn't affected.

You can see several examples of this within this post: Road to Hana Itinerary

Many thanks,

Sophie

Hi Sophie,

You may try two things to add spacing below the gallery.

1. Insert the Gallery Block within a GB Container Block which would allow you to easily modify the spacing.
2. Or, add a CSS like this in Appearance > Customize > Additional CSS to modify the bottom margin of all WP Gallery Blocks:

.wp-block-gallery {
    margin-bottom: 10px;
}

Alternative if you want padding bottom:

.wp-block-gallery {
    padding-bottom: 10px;
}

Kindly modify 10px to your preferred value.

Hope this helps!

That's perfect. Thank you Fernando.

You’re welcome Sophie! Glad that worked!

This archived topic is closed to new replies.