Site logo

Archived topic

Unwanted white margin under every post

7 replies · Started by Kitti on March 24, 2023

Viewing posts 1–8 of 8

Hi!

I'd like to ask for help. All of my blog posts have a bottom white margin although I don't have any margins for neither the post section nor the footer. It only affects the posts.

When I inspected, I found that there is a CSS code .post {margin: 0 0 2em;}. This code is responsible but I don't know why it is there. Adding it a 0 margin with !important doesn't help. If I change the theme, the margin disappears so it is caused by Generatepress.

Example: https://bekekitti.hu/blog/15-alabecsult-bizalomepitesi-eszkoz-szakertoi-weboldalhoz/

Thank you in advance!

Hi there,

Can you disable any caching or optimization plugins so I can try to inspect where the code is coming from?

Let me know :)

?nowprocket

Add this to end of any URL to bypass WP Rocket.

Is this method enough for you to investigate?

Hi Kitti,

The margin is added to the post when separate containers is selected.

Based on your site design, it's better to use one container.

The setting is at customizer > layout > container.

I've set it to one container, cleared all cache, but this margin is still there. Do you have any idea what to do?

Thank you! It works perfectly! :)

However, I don't understand, why do I need a custom CSS code for this? I've done several websites, I love GeneratePress but until now the standard settings worked absolutely fine. (I'm a designer, not a developer, so it may be a dumb question)

GP premium sets the posts' bottom margin to 0, but on your site, I don't see it.

As your cache plugin is on, I can't tell what's going on with the CSS.

If you can disable the cache plugin, I can take another look :)

This archived topic is closed to new replies.