-
AuthorPosts
-
February 14, 2023 at 7:31 pm #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,
AlwinFebruary 15, 2023 at 6:23 am #1398020Hey 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,
IsmaelFebruary 15, 2023 at 12:01 pm #1398051Hello 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.nlSo why is the setting working fine on einberg.nl and not on greenconnections.nl?
February 16, 2023 at 6:21 am #1398164Hi,
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,
IsmaelFebruary 16, 2023 at 9:45 am #1398183Hello Ismael,
No problem, hereby my login details :)
February 17, 2023 at 7:34 am #1398292Hi,
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,
IsmaelFebruary 17, 2023 at 9:22 am #1398316Hello Ismael,
Thank you, but I don’t see css code in your last reply?
February 19, 2023 at 6:01 pm #1398549Hi,
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,
MikeFebruary 22, 2023 at 7:34 pm #1398938The 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, 9 months ago by Alwin.
February 23, 2023 at 5:57 am #1398965Hi,
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,
IsmaelFebruary 23, 2023 at 10:03 am #1398973Hello 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
February 23, 2023 at 10:36 am #1398979I 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 OptionThe 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… :)
February 23, 2023 at 1:46 pm #1399005Hi,
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 -
AuthorPosts
- The topic ‘Slider minimum height in pixel not working?’ is closed to new replies.