Site logo

Archived topic

Images lost their set padding/margins

3 replies · Started by Mario on February 25, 2023

Viewing posts 1–4 of 4

Hi,

All the images i have on one of my sites, here a URL example - https://www.avidpup.com/when-do-puppies-start-eating-food-drinking-water/

All images seem to have lost their padding and margins i've set around them.

When i open a post in the editor i can see that the image is no longer a Generateblocks image but it switched somehow back to a regular image which is probably why the margins dissapeared.

What could have caused this? and more importantly, how do i fix it without manually(one at a time) switching them back to generateblocks images again?

One at a time would realy suck cause there are hundreds on the site...

Thanks,

Hi tehre,

try adding this CSS:

.wp-block-image {
    margin-bottom: 1.5em;
}

Hi david,

That will probably work for most of the images but there are are also images with different padding /margin settings.

I can ofcourse switch them back to generateblocks images again and hope they remain generateblocks images but i doubt they will?

Can you tell me the probable cause of the generateblocks images to automatically switch to a regular WP image block?

I seem to have the same problem with Youtube embeds btw.

Thanks,

Can you tell me the probable cause of the generateblocks images to automatically switch to a regular WP image block?

I've never heard of an issue like this, can't really tell, but it should not change to a WP image block.

This archived topic is closed to new replies.