• Resolved chircami

    (@chircami)


    Hello everyone, I am creating a page with the theme Chaplin and Gutemberg. When creating the blocks it leaves me a space, does anyone know how to avoid that? I want to avoid putting code. Thank you very much for your contribution, greetings

Viewing 6 replies - 1 through 6 (of 6 total)
  • Theme Author Anders Norén

    (@anlino)

    Hi @chircami,

    I’m not sure what you mean with “a space” between blocks. Can you post a link to a page where the issue is visible?

    — Anders

    Thread Starter chircami

    (@chircami)

    Hi Anders,
    First of all thank you for your quick response, that is greatly appreciated. I give you the link so you can see that space between elements.
    https://chircami.alwaysdata.net/
    By the way your themes are very nice, fast and minimalist. I await your advice. Have a nice day
    Mirko

    Theme Author Anders Norén

    (@anlino)

    Hi @chircami,

    Glad you like them! There are no built-in margin settings in the Block Editor, so you’ll need to do this with custom CSS. You could select the block you want to remove the margin from, scroll down to the bottom of the right sidebar, click the “Advanced” tab, and add “no-vertical-margin” to the “Additional CSS class(es)” field.

    Next, go to Appearance → Customize → Additional CSS and add this:

    .no-vertical-margin {
        margin-bottom: 0 !important;
        margin-top: 0 !important;
    }

    Add the class to all blocks you want to remove the vertical margin from. You could also add a block style with the no-vertical-margin class in a child theme, so it can be selected directly in the editor.

    — Anders

    Thread Starter chircami

    (@chircami)

    Hi Anders,
    I have solved the space between the blocks but between the main photo and the first block I can’t. That is, where can I add the class to the main photo? Thank you
    Mirko

    Theme Author Anders Norén

    (@anlino)

    @chircami Add this to the Additional CSS field:

    .page-id-2 .post-inner { padding-top: 0 !important; }

    Thread Starter chircami

    (@chircami)

    Hello Anders,
    Thank you very much Anders, you are a crack, have a nice weekend, greetings

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘remove space between blocks’ is closed to new replies.