Archived topic
Remove lateral paddings of images in posts
3 replies · Started by Albert on June 1, 2022
Hello! I would like to know how I can eliminate the lateral margins (padding) of the images that are inside the posts. I would like to achieve the same effect as with the featured image.
Here an example:
https://viajar.amsterdam/bloemenmarkt-mercado-flotante-flores/
Thank you very much
Hi Albert,
The featured image has a custom CSS code affecting its margin.
To replicate this for all post images, here is a CSS you may try adding in Appearance > Customize > Additional CSS:
body.single-post figure.wp-block-image {
margin-left: -20px;
margin-right: -20px;
max-width: unset;
}
Kindly let us know how it goes.
Thank you very much!!
You’re welcome Albert!