Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #322573

    Hi! Great theme!

    I’m looking for a way to increase the height of the slider when viewing in portrait orientation in Responsive mode on a smartphone so that the slider image fills up about 60% of the height of the screen instead of the approx. 30% height of the screen it currently does. However, I don’t want to increase the height of the slider for desktop/laptop viewing. What’s the solution?

    Best,

    Doug

    #322847

    Hey dburton77!

    Thank you for using Enfold.

    Which type of slider are you using right now? A link to the actual page with the slider will help.

    Best regards,
    Ismael

    #322922

    I’m using the most recent version of Enfold with the Layer Slider WP included. The slider can be seen on the site’s home page here:

    http://saltworksdigital.com

    Doug

    #322937

    Hey!

    Unfortunately it is not possible. However, as a workaround, you can create another slider to be displayed on mobile and place right under your current slider and add following code to Quick CSS in Enfold theme options under General Styling tab

    @media only screen and (max-width: 768px) {
    div#layerslider_3 { display: none; }}
    @media only screen and (min-width: 769px) {
    div#layerslider_4 { display: none; }}

    Cheers!
    Yigit

    #325059

    Great workaround idea! I tried it and it does indeed seem to hide the proper slider for the desired medium. However, it leaves a big space where the other slider would appear. See:

    http://www.saltworksdigital.com

    How do we force it to close the gap?

    #325069

    Hey!

    Please change the code to following one

    @media only screen and (max-width: 768px) {
    div#layerslider_1 { display: none; }}
    @media only screen and (min-width: 769px) {
    div#layerslider_2 { display: none; }}

    Regards,
    Yigit

    #325186

    I tried the new code you suggested but it still doesn’t remove the gap/space. I cleared the cache and everything.

    #325193

    Hey!

    Do you mind creating a temporary admin login and posting it here privately so we can look into it?

    Regards,
    Yigit

    #325237
    This reply has been marked as private.
    #325248

    Hey!

    I have added the code to Style.css file of your child theme flushed cache and it does seem to work fine. Please check your website now

    Cheers!
    Yigit

    #330747

    Hey, that worked great. However, I had to change the sliders that need to show from #3 and #5 to #3 and #6. I think I broke something. Can you take a look?

    #331242

    Actually, nevermind. I figured it out. Thanks for all the help with this Yigit. I love how our site looks with this theme!

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Increase Height of Slider in Responsive mode’ is closed to new replies.