Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1397990

    Please take a look http://www.greenconnections.nl

    Fot the Fullwidth Easy Slider (containing 1 photo) I set he option Slider minimum height in pixel at 300px.

    However, when looking at mobile view I see that the minimum height is not set at 300px (but far lower).
    What am i doing wrong here?

    Thanks,
    Alwin

    #1398020

    Hey Alwin,

    Thank you for the inquiry.

    That is the default behavior of the slider. It inherits the height and aspect ratio of the images and resize accordingly. You can add the following css code to adjust the size of the slider, but the whole image will not be visible in the slider area.

    .avia-slideshow.av-fhu65-4d5fc4714aa76b1680c7e2d33bc82a8c .avia-slideshow-inner {
        height: 300px !important;
    }
    
    .avia-slideshow.av-fhu65-4d5fc4714aa76b1680c7e2d33bc82a8c .avia-slideshow-inner .avia-slideshow-slide, .avia-slideshow.av-fhu65-4d5fc4714aa76b1680c7e2d33bc82a8c .avia-slideshow-inner .avia-slideshow-slide .avia-slide-wrap  {
        height: 100%;
    }
    
    .avia-slideshow.av-fhu65-4d5fc4714aa76b1680c7e2d33bc82a8c .avia-slideshow-inner .avia-slideshow-slide .avia-slide-wrap picture {
        height: 300px !important;
        display: block;
        left: -80%;
        position: relative;
    }
    

    You can add this css code if you want to adjust which area of the image or slide should be visible in the slider container.

    .avia-slideshow.av-fhu65-4d5fc4714aa76b1680c7e2d33bc82a8c .avia-slideshow-inner .avia-slideshow-slide .avia-slide-wrap picture {
        left: -80%;
    }
    

    Best regards,
    Ismael

    #1398051

    Hello Ismael,

    Thanks for your help.

    I don’t really understand why I need to add custom css code when there is an option set “Slider minimum height in pixel” in the Fullwidth Easy Slider settings. What’s the point of this option if it doesn’t work and you have to use custom css?

    Moreover, I also use the option “Slider minimum height in pixel” in the Fullwidth Easy Slider settings on this website, where I set 160px as minimum height and it’s working just fine:
    http://www.einberg.nl

    So why is the setting working fine on einberg.nl and not on greenconnections.nl?

    #1398164

    Hi,

    We missed the info about the minimum height option. Sorry about that. We may need to access the site in order to check the issue further. Please provide the login details in the private field.

    Best regards,
    Ismael

    #1398183

    Hello Ismael,

    No problem, hereby my login details :)

    #1398292

    Hi,

    We checked the slider setting and they seem to be correct, but we are not yet sure why the minimum height is not applying correctly. Please try to add this css code for now as a temporary fix. We will get back once we figure out the issue.

    Best regards,
    Ismael

    #1398316

    Hello Ismael,

    Thank you, but I don’t see css code in your last reply?

    #1398549

    Hi,
    I believe that Ismael may have meant the css above in a media query, please give this a try.
    I didn’t see a cause for the issue, hopefully Ismael finds a cause after the weekend.

    @media only screen and (max-width: 767px) { 
    .avia-slideshow .avia-slideshow-inner {
        height: 300px !important;
    }
    
    .avia-slideshow .avia-slideshow-inner .avia-slideshow-slide, .avia-slideshow-inner .avia-slideshow-slide .avia-slide-wrap  {
        height: 100%;
    }
    
    .avia-slideshow .avia-slideshow-inner .avia-slideshow-slide .avia-slide-wrap picture {
        height: 300px !important;
        display: block;
        left: -80%;
        position: relative;
    }
    }

    Best regards,
    Mike

    #1398938

    The code works, thanks a lot!

    But I am curious if you can still find the cause, because the slider settings are good, and these slider settings and minimum height settings works well on other websites.

    Hopefully I will hear from you again, if you have found the cause.

    • This reply was modified 1 year, 10 months ago by Alwin.
    #1398965

    Hi,

    We tried to login to the site again but got locked out by WordFence. Would you mind updating the theme again? The minimum height option works correctly on our end using version 5.4.1.

    Best regards,
    Ismael

    #1398973

    Hello Ismael,

    What do you mean by uodating the theme again? I am already on version 5.4.1. So do you want me to upload the Enfold theme files again with FTP and overwrite the existing files?

    If you want to login to the siute you need an 2FA code. You can find the code in the private content box :)

    Alwin

    #1398979

    I found out what caused the issue:

    I use the Imagify plugin to display webp images on this website. There are 2 options in Imagify to display webp images:
    1 – Use <picture> Tags Option
    2- Use Rewrite Rules Option

    The first option is the default and recommended option, but it will cause the issue with the minimum pixel heigt in the slider!

    When switching to the second option, the issue is gone, the minimum pixel height is working fine.

    More info about this:
    https://imagify.io/documentation/my-images-are-broken/

    I’ve had a similar problem before at another Enfold website due to these Imagify plugin settings. Unfortunately I forgot about that, otherwise I could have solved this issue myself faster… :)

    #1399005

    Hi,
    Glad to hear that you have this sorted out, and thanks for sharing your solution, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Slider minimum height in pixel not working?’ is closed to new replies.