Tagged: enfold, Layer Slider, mobile, responsive, slider
-
AuthorPosts
-
April 19, 2019 at 3:12 pm #1092700
Hi,
I’m trying to get layer slider to work on mobile and it appears to be squished (see attached screen shot). Is there a setting I have wrong?
The url of the site this is on is: veggiegardenfilms.com/test
Jim
April 20, 2019 at 8:15 am #1092867Hey Jim,
I can’t see a screenshot but please post admin login details in private so that we can have a closer look at your slider.
Best regards,
RikardApril 20, 2019 at 12:41 pm #1092921Thanks!
Sorry, here’s the screen shot. I’ve included the login details in the private content.
Jim
- This reply was modified 5 years, 7 months ago by jimmiesner.
April 22, 2019 at 6:15 am #1093245Hi Jim,
Thanks for that. You have this coming from your child theme:
@media only screen and (max-width: 480px) { .ls-wrapper.ls-in-out, .ls-wrapper.ls-in-out div { height: 60px!important; width: 100%!important; left: 0%!important; } }
Could you try to remove that to see if it helps?
Best regards,
RikardApril 22, 2019 at 4:43 pm #1093365Thanks Richard,
I removed that code. Is there also a way to make the video full width on mobile?
Jim
April 23, 2019 at 6:56 am #1093523Hi,
Thanks for the update.
Did you set the video layer as the slider background? Just look for the “Use this video as slide background” option in the layer’s Content panel.
Best regards,
IsmaelApril 23, 2019 at 1:45 pm #1093659Thanks. That’s great. It fills the slide, but I can’t get it to play or go to the next slide now. Is there an issue with my video provider?
Jim
April 24, 2019 at 3:04 pm #1093998Hi,
Yes, maybe it’s not working because of the video source. We haven’t seen anyone use that media provider before. Try to use youtube or vimeo instead of mediazilla.
Best regards,
IsmaelApril 24, 2019 at 3:15 pm #1094009Ismael,
Thanks. I tried a vimeo video but I’m not getting any sound. It’s important that there’s sound as this is a portfolio. Is there always no sound when background video is selected? If so, is there another way to do the video full width that allows sound?
Jim
April 25, 2019 at 3:32 am #1094266Hi,
Thanks for the update.
The browsers won’t allow autoplay for media files with sounds, so they have to be muted if you want them to automatically start on page load.
// https://developers.google.com/web/updates/2017/09/autoplay-policy-changes
One workaround is to open the video inside a lightbox. Just create a standard slider with a static image background and then create a button that will open the media file inside a lightbox container.
Youtube actually discourages the use of videos as background when they remove the parameters that allow users to disable the info inside the frame.
// https://developers.google.com/youtube/player_parameters#release_notes_08_23_2018
Best regards,
IsmaelApril 25, 2019 at 5:48 am #1094292Ismael,
Thanks. Would I need to upgrade layerslider to do this? I am having trouble finding documentation to help me accomplish that.
Jim
April 26, 2019 at 4:09 am #1094596Hi,
Thanks for the update.
No, you don’t need to upgrade the layer slider. Just create a slider with a static background and a new button and put the video url as the target or link. Make sure that it’s from youtube or vimeo. Clicking on the button should open the media file inside a lightbox container. Unfortunately, we can’t do anything with the muted video.
Best regards,
IsmaelApril 27, 2019 at 3:48 am #1094860Ismael,
Thanks! That plays now. I have a couple of more questions if you don’t mind.
1) I tried making the slider smaller, but couldn’t figure out how. When I tried putting it inside a content element that was 3/5 the size of the page it wouldn’t allow me to. Is there a way to make it smaller on desktop. The size is perfect on mobile.
2) When the video comes up on mobile, it comes up a little below the static thumbnail. Is there a way to layer it so it comes up right over the static thumbnail? See attached image.
April 29, 2019 at 12:56 pm #1095243Hi,
Thanks for the update.
We’re trying to edit the slider, but the changes aren’t taking effect. Is there a server cache? We actually removed the layer slider in the “test” page, but it’s still displaying in the frontend.
The current slider layout is not that complex, so you’re probably better off using the Full Screen Slider instead of the Layer Slider. That slider will automatically inherit the size of the browser window.
Best regards,
IsmaelApril 29, 2019 at 6:46 pm #1095426Ismael,
Thanks. I changed to Full Screen Slider but I can’t get the video to fit inside a container with that either, nor can I get it to play. Do I have something set wrong?
Jim
May 1, 2019 at 7:53 am #1096058Hi,
Thanks for the update.
The video has to be muted in order for it to automatically play on page load. We enabled the “Mute Video Player” option in the slider settings.
Best regards,
IsmaelMay 1, 2019 at 8:12 pm #1096248Ismael,
I don’t understand your response. I was not trying to get the video to play automatically. I was just trying to get it to play.
I was able to figure out a solution by using the easy slider though. Thanks for your help and have a great day.
Jim
May 2, 2019 at 11:17 pm #1096630Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Layer Slider Small on Mobile’ is closed to new replies.