Site logo

[Support request] Unwanted white margin under every post

Home Forums Support [Support request] Unwanted white margin under every post

Home Forums Support Unwanted white margin under every post

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2580893
    Kitti

    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!

    #2581072
    Leo
    Staff
    Customer Support

    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 🙂

    #2584091
    Kitti

    ?nowprocket

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

    Is this method enough for you to investigate?

    #2584477
    Ying
    Staff
    Customer Support

    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.

    #2593584
    Kitti

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

    #2593616
    Leo
    Staff
    Customer Support

    Try adding this CSS:

    .single-post .post {
        margin: 0;
    }

    Learn how to add CSS: https://docs.generatepress.com/article/adding-css/

    #2595053
    Kitti

    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)

    #2595091
    Ying
    Staff
    Customer Support

    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 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.