[Resolved] Minimize vertical space between “all” galleries on my page

Home Forums Support [Resolved] Minimize vertical space between “all” galleries on my page

Home Forums Support Minimize vertical space between “all” galleries on my page

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #2332076
    Jenny

    Hello πŸ™‚

    do you know a way to minimize the “vertical” Space in the Galeries (I used an duplicate-Element :)) on my page?
    Can you help me?

    https://ibb.co/bgdVxbk

    Thank you 🌻,
    Jenny

    #2332232
    David
    Staff
    Customer Support

    Hi there,

    try adding this CSS:

    .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img {
        margin-bottom: 0;
    }
    #2332843
    Jenny

    Thank you David, that worked great ❀️. I have got an second issue, also with the galery. Maybe you also know here an answer? https://ibb.co/VpMnBSY

    I have this gallery on
    DE, RU, EN, but just on the “home”

    Thank you so much :).

    #2333006
    David
    Staff
    Customer Support

    Add this CSS:

    .wp-block-gallery.no-gap {
        grid-gap: 0;
    }

    then select the Gallery Block(s) you want to remove the gap and in Advanced > Additional CSS Class(es) add: no-gap

    #2333016
    Jenny

    Thank you David 🌻. It worked perfect.

    #2333033
    David
    Staff
    Customer Support

    Glad to hear that πŸ™‚

    #2334444
    Jenny

    Dear David,

    I have to ask again, because I just checked the Desktop view.
    On mobile fews I need the space like bevor. Is there an solution for it?
    This just regards “no gaps” class

    Thanks for looking It up once again πŸ™‚
    Jenny

    #2334450
    Fernando
    Customer Support

    Hi Jenny,

    To clarify, you just want no gap on Desktop, and the default on other views?

    If so try modifying the CSS to this:

    @media (min-width: 1025px) {
        .wp-block-gallery.no-gap {
            grid-gap: 0;
        }
    }
    #2334599
    Jenny

    perfect πŸ™‚ Thank you Fernando 🌻

    #2335359
    Fernando
    Customer Support

    You’re welcome Jenny! πŸ™‚

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