• Resolved Brian Henry

    (@brianhenryie)


    Hey, nice work, thanks.

    How would you suggest I set a max-height on the slider? I’m trying to migrate an existing site to a blocks theme so right now I’m trying to imitate it exactly, where the existing slider is 350px high.

    I tried wrapping it in a Group but that didn’t have a way to limit height (only minimum height). This is the first full-site-editing site I’m trying so forgive me if the answer is obvious!

Viewing 1 replies (of 1 total)
  • Plugin Author lubus

    (@lubus)

    Hi Brian 👋 Thanks for checking out the block!

    At the moment our slider block doesn’t include a built-in max-height setting. The best way to achieve what you’re after is by using a custom class and a little bit of CSS.

    1. In the block settings sidebar, scroll down to Advanced → Additional CSS Class(es) and add a class something like my-slider.
    2. Then in your stylesheet or Customizer → Additional CSS, add something like:
    .my-slider .swiper { max-height: 350px; }

    That will cap the slider’s height at 350px while keeping the existing functionality intact.

    We’ll also keep your feedback in mind for future improvements so that max-height can be set directly from the block options. 🙂

Viewing 1 replies (of 1 total)

The topic ‘Max height for Slider’ is closed to new replies.