I’ve been asked to change the scrolling of a carousal from dots at the bottom to arrows either side but I’ve got no idea how to do that and would be grateful for some pointers.
Do you know what script you are using (if not a custom one)? There are lots of free slider scripts available that do what you want. (E.g. bxSlider, Slick etc.) It’s probably a lot easier to switch to a script that does what you want than to try to modify an existing one—unless the script you are using already has the appropriate option built in.
Can you show us the page in question? It’s a lot easier to see what’s going on in a live page rather than a huge chunk of text. Not to menion, the script CSS probably does the placing anyway, which you didn’t post.
All I really want is a way of showing and hiding arrows depending on which image is being shown. I’m not worried about styling it as I can do that no problems but I’m having a bit of trouble with JS
Create a copy of htat page for this test I’m about to have you do. On your test copy, remove all of those buttons in the HTML except for the first two. So this
snip
Should now be this
snip
Now add this CSS in. If you know how to update this in the file -
Thank you I tried that on a test page and it did work, but how do I get it to work on the live site? I thought I’d pasted in that bit of code but I think I’d left it off. It’s a php site and the tabs are created using this:
Also if you don’t mind could I ask if you could remove the full url’s from the code? Sorry but I’ve just started int he job and didn’t want my boss to see I’d posted here. Thanks
I edited the post and removed the HTML c ompletely since you’ve already done what I suggested.
I’d go ask in the PHP section. I can see what PHP is causing the 5 tabs to appear but I do not know the best way to limit it. I’d rather you go to the PHP section where you get professional help.
You’re welcome. I would suggest talking to your boss and seeing if you could just switch carousels (my work uses slick slider and it’s GREAT) since that would be easier. Just be thorough in your explanation. Either way, good luck.