This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Layout Slider: % height not working

9 years ago · Last reply by ryanhayden 9 years ago

Hi,

If I give the Layout Slider a fixed height in px, it will work. But, if I give the height as a %, it does not. A real pain as I need it to display at 100% so that it will resize for other devices and not cut off any images.

Any chance of fixing this or a way I can?

Many Thanks,
Ryan

https://s12.postimg.org/58b9hgm8t/Screen_Shot_2016_11_10_at_09_05_35.png

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

12
  1. Alex S Staff 9 years, 3 months ago

    Hi Ryan,

    Percentage based heights will only work in the manner you’re after if the container it’s applied to is also of that height. This means it’s actually dependent on your theme to handle this rather than the slider.

    As a result, I would highly recommend switching the unit of measurement to vh as it’s easier to set up (and honestly better). Set the height to 98 (or there about to a count for the address bar) and the unit of measurement to vh.

  2. ryanhayden Private 9 years, 3 months ago

    This is a private message.

  3. ryanhayden Private 9 years, 3 months ago

    This is a private message.

  4. Alex S Staff 9 years, 3 months ago

    Hi Ryan,

    Okay, so to clarify, how do you actually want it to look? Based on the mobile version, it looks like you want it to be one image after another, is this the case?

  5. ryanhayden Private 9 years, 3 months ago

    This is a private message.

  6. Alex S Private Staff 9 years, 3 months ago

    This is a private message.

  7. ryanhayden Private 9 years, 3 months ago

    This is a private message.

  8. ryanhayden Private 9 years, 3 months ago

    This is a private message.

  9. Alex S Staff 9 years, 3 months ago

    Hi Ryan,

    Sorry for the delay. I’ve run a few tests with the provided layout and I still can’t seem to replicate the issue you’re having. To clarify, what happens when you don’t set a height?

  10. ryanhayden Private 9 years, 3 months ago

    This is a private message.

  11. Alex S Staff 9 years, 3 months ago

    Hi Ryan,

    Sadly, a login won’t help as I wasn’t able to replicate the issue on your site either. Hm. At this point we could try and force a minimum height with CSS.

    If you navigate to AppearanceCustom CSS, you’ll get our custom CSS editor. Please add the following CSS.

    #pgc-4691-0-0 .sow-slider-image-wrapper, #pgc-4691-0-0 .so-widget-sow-image-grid {
    	min-height: 780px;
    }

    You might also need to install the SiteOrigin CSS Editor.

  12. ryanhayden Private 9 years, 3 months ago

    This is a private message.

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread