I have a slider that sliders but the arrows don't work and one that works perfectly. A few of us have tried to work out why one is working and the other is not. Any ideas?
Compare Html of both page that will helpful to find problem if the html is same then check the arrow images(if it comes from file system) is accessible in umbraco, still problem not found then check for javascript or jquery files are conflicted or not.
Maybe a bit late with a reply, but seeing as one works and one doesn't we can only look at the differences. If it slides then, in theory everything is in place for it to work, but the arrows do not function.
So, the difference is the container, swiper-container3 works, but -alt and 2 do not.
If the width is set on 3 differently than on alt and 2, you could effectively have a div covering the buttons. Although they are visible, they are not clickable as they are underneath another div.
Alternatively, if the width is not set anywhere in the subsequent divs, ie news-story or headline, they could be inheriting the width from the parent once again effectively covering the buttons.
With issues like this, my route is to use F12 in Firefox, it just seems much easier to "see" than in any other browser.
Without everything to see, this maybe a bit of a stab in the dark, but worth checking all the same.
Thanks guys! I took your advice and looked for the differences but then discovered that elsewhere in the scripts folder, the previous developer had referenced a class called swiper-gallery that didn't exist. Once i commented that out, the slider in question started working. Woop!
A faulty iDangero.us slider
Hi there,
I have a slider that sliders but the arrows don't work and one that works perfectly. A few of us have tried to work out why one is working and the other is not. Any ideas?
Below is the faulty slider:
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
And the working one:
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
I've spent two days so far trying to work out where it's gone wrong. Any ideas at all would be welcomed.
Thanks,
Emma
Hi,
Compare Html of both page that will helpful to find problem if the html is same then check the arrow images(if it comes from file system) is accessible in umbraco, still problem not found then check for javascript or jquery files are conflicted or not.
Hi
Maybe a bit late with a reply, but seeing as one works and one doesn't we can only look at the differences. If it slides then, in theory everything is in place for it to work, but the arrows do not function.
So, the difference is the container, swiper-container3 works, but -alt and 2 do not.
If the width is set on 3 differently than on alt and 2, you could effectively have a div covering the buttons. Although they are visible, they are not clickable as they are underneath another div.
Alternatively, if the width is not set anywhere in the subsequent divs, ie news-story or headline, they could be inheriting the width from the parent once again effectively covering the buttons.
With issues like this, my route is to use F12 in Firefox, it just seems much easier to "see" than in any other browser.
Without everything to see, this maybe a bit of a stab in the dark, but worth checking all the same.
Hope it helps
Gary
Thanks guys! I took your advice and looked for the differences but then discovered that elsewhere in the scripts folder, the previous developer had referenced a class called swiper-gallery that didn't exist. Once i commented that out, the slider in question started working. Woop!
is working on a reply...