stuck_again — 2014-05-05T04:58:25-04:00 — #1
Hi guys n girls,
I'm currently using this jquery slider on one of my projects, can anyone tell me how to remove the navigation arrows/options within the JS file?
Ive looked through the comments and cant find any advice on this issue.
Additionally I would like to remove the dots at the bottom off the slider too.
Here is the link to the slider that i decided to use: http://tympanus.net/codrops/2013/02/26/full-width-image-slider/
Many thanks in advance
pullo — 2014-05-05T05:09:31-04:00 — #2
Assuming that there is no obvious way to do this in the documentation (I didn't look), then just use your browser tools to find out the name of the containing elements and set their display property to none.
For example, in the case of the dots, we have this HTML:
So, thiss CSS should do what you want:
stuck_again — 2014-05-05T05:32:22-04:00 — #3
Thanks for your quick reply Pullo, I did trying playing with the css, but it seems that I still get this:
On the bottom left hand side of the slider. That's why I thought it may be best to try to remove the function from the JS instead.
stuck_again — 2014-05-05T05:37:42-04:00 — #4
ok... found it in the JS!
this.$navPrev = $( '<span class="cbp-fwprev"><</span>' ).hide();
this.$navNext = $( '<span class="cbp-fwnext">></span>' );
$( '<nav/>' ).append( this.$navPrev, this.$navNext ).appendTo( this.$el );
Thanks for you help!
pullo — 2014-05-05T05:46:42-04:00 — #5
I would still override these settings in the CSS, however, as if you update the plugin at a future date, you could overwrite your changes,
If you could make a simple demo page with the slider on it, I can take a look at it for you.
stuck_again — 2014-05-05T06:02:38-04:00 — #6
It's all good now thanks bro. I have found and changed the relevant CSS as you suggested plus 'backed up' the original code just in case i need it again.
Thanks for your help though mate,
All the best!