• Resolved danielladomingues

    (@danielladomingues)


    Hello everyone,

    I’m getting a hard time in getting rid of this space below the cover block on this page. I tried a lot of possibilities regarding margin and/or passing and nothing seem to work.

    Any insights? Thanks!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Twentig

    (@twentig)

    Hi,

    Thanks for the feedback. There’s indeed an issue with the Cover’s margin when a duotone filter is set. By default, Twentig sets a negative margin when a full-width block is the last child of the content. However, as WordPress adds some HTML tags after the Cover to create the duotone, the Cover isn’t considered the last child anymore.

    We’ll try to find a fix for the next release.

    In the meantime, you can fix it by following these steps:

    1) Add the following CSS code in Customizer > Additional CSS:

    .page-id-5.tw-no-footer .entry-content > .wp-block-cover {
        margin-bottom: calc(var(--global--spacing-vertical) * -3);
    }
    
    @media (min-width: 652px) {
        .page-id-5.tw-no-footer .entry-content > .wp-block-cover {
            margin-bottom: calc(var(--global--spacing-vertical) * -5);
        }
    }

    2) Remove the margin-bottom of 0 that you’ve set on the Cover block.

    3) Remove the empty paragraph that you have at the end of your page.

    Please note that if your goal is to make a fullscreen cover, you should set its minimum height to 100vh.

    Hope that helps,
    Tom

    Thread Starter danielladomingues

    (@danielladomingues)

    It works perfectly! Thank you very much!

    Plugin Author Twentig

    (@twentig)

    Glad it works.

    If you enjoy Twentig, please rate it. I’d really apreciate it 🙂

    Thanks,
    Tom

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Remove space below content (cover block)’ is closed to new replies.