Archived topic
Appearance Customize Layout ContinerPaddding ignored
3 replies · Started by Kathleen on November 20, 2022
I have padding set through Apperance-customize-layout-container-padding. With this set, there used to be ample padding around the images in my blog posts. However, recently I noticed that there is no space after images in my blog posts. The text runs right up to the bottom edge of the image. I am using the Gutenberg editor image block, but I have also tried adding a container block and adding the image there. I still have the same results where the text runs right up to the bottom of the image using this approach.
Here are a few examples:
https://secondstogo.net/wordpress/epcot-genie-plus-genie-plus-itinerar/
https://secondstogo.net/wordpress/latourell-falls-hike-guy-w-talbott-state-park/
I haven't changed any settings, but have noticed some other strange things going on, such as the title block in the Gutenberg editor has disappeared. Any help or guidance would be appreciated.
Hi Kathleen,
The Paddings set in Appearance > Customize > Layout > Container controls the padding for the Content. It doesn't add padding to Image Blocks or other blocks. See here for reference: https://docs.generatepress.com/article/content-padding/
If you recently updated your WordPress version, that could be the cause of the issue. WP 6.1 decided it would be a good idea to remove the Margin they used to add to their Image Blocks.
So for now you need some CSS to add it back in. Try adding this through Appearance > Customize > Additional CSS:
figure {
margin-bottom: 1.5em;
}
That did the trick! Thank you so much for your quick and helpful reply.
You're welcome Kathleen!