Tagged: background, fixed, Layer Slider
-
AuthorPosts
-
October 21, 2017 at 9:31 pm #867101
Hi I’ve created a layerslider with background that should be fixed. It is only visible on mobile and I want it to be a fixed background but it doesn’t stay fixed. It scrolls.
Any help would be greatly appreciated.
October 22, 2017 at 6:21 pm #867244Hey johnosjourney,
Here are some threads to consider:
https://stackoverflow.com/questions/26372127/background-fixed-no-repeat-not-working-on-mobilehttps://stackoverflow.com/a/25972913
If you need further assistance please let us know.
Best regards,
VictoriaOctober 22, 2017 at 10:00 pm #867352Thanks for that Victoria. I’m not exactly sure how I would target the Layerslide itself though. If the layerslide has an ID in the admin panel of “6” would I just call layerslider_6?
Then I’m not sure how I would target the background to be able to add any of the css.
This is the HTML for that section:
<div id="layerslider_6" class="ls-wp-container fitvidsignore ls-noskin ls-container ls-fullwidth ls-device-is-desktop" style="width: 375px; height: 375px; margin: 0px auto 0px -28.125px; background-attachment: fixed !important; position: relative; max-width: none; visibility: visible;" data-layerslider-uid="LSuqqnk1hkt"><div class="ls-inner" style="background-image: url("https://www.yallarugby.com/wp-content/uploads/2017/10/seosheikh-test.jpg"); background-repeat: no-repeat; background-attachment: fixed; background-size: auto; background-position: center center; background-color: rgb(39, 52, 138);"><div class="ls-layers"><div class="ls-background-videos"></div><div class="ls-slide-backgrounds"></div><a href="http://www.seosheikh.com/" target="_blank" class="ls-link ls-link-on-top" data-ls-slide-link="1" style="z-index: 5; display: block;"></a></div></div><div class="ls-gui-element ls-loading-container" style="display: none;"><div class="ls-loading-indicator"></div></div><div class="ls-gui-element ls-shadow" data-ls-parallax="disabled"></div><img class="ls-yourlogo" style="right: 2px; top: 2px; visibility: visible; width: 0px; height: 0px;" src="https://www.yallarugby.com/wp-content/uploads/2017/10/partner-advertisment-text.png"></div>
Alex
October 23, 2017 at 8:20 pm #867815Hi,
You can use the #layerslider_6 and then any other class so you can target the specific element you might need.
Best regards,
BasilisOctober 23, 2017 at 9:09 pm #867834This issue I’m having is that I can’t keep the background fixed on IOS mobile devices.
October 24, 2017 at 9:32 am #868028Hi johnosjourney,
The page that you gave us in the original post does not have the Layer Slider. Can you give us the link to the page with the slider that you’re working on?
Best regards,
VictoriaOctober 24, 2017 at 9:33 am #868029Hi Victoria, thanks for getting back to me. It does, it’s hidden on desktop view though. You will need to view on mobile device only. I’ve had to make it static for now as Fixed will not work on IOS.
October 24, 2017 at 9:34 am #868030Hi Victoria, thanks for getting back to me. It does, it’s hidden on desktop view though. You will need to view on mobile device only. I’ve had to make it static for now as Fixed will not work on IOS.
October 24, 2017 at 11:08 am #868083Hi johnosjourney,
Why do you need to have it fixed? Parallax on mobile might take many efforts and might not be worth it. It looks as an image and using a Layer Slider here is overkill.
Here is a thread for you to consider
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.