Closed (fixed)
Project:
jCarousel
Version:
6.x-2.2
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Feb 2011 at 19:58 UTC
Updated:
12 Nov 2011 at 21:10 UTC
Is there a way to disable the buttons from being output in the carousel from Views? I want the carousel to scroll with no navigation buttons.
Comments
Comment #1
quicksketchHonestly, the easiest approach is to add CSS to
display: nonethe arrows. You can also add your own JS to disable the buttons, but that's significantly more heady than just hiding them.Comment #2
quicksketchComment #3
baby.hack commentedHow would setting display:none in css solve this? Doesn't the element itself get it's display style property set in js as display:block, which would override any css applied to it's class? Or am I missing something?
In any case, wouldn't setting buttonNextHTML and buttonPrevHTML to NULL be the appropriate way to do this?
Comment #4
shanefjordan commentedbaby.hack is correct, this element receives a inline style of "display:block" that overrides the "display:none" property set in the stylesheet.
An option to just not display them in the jCarousel settings would be best. Any help?
Thanks,
Shane
Comment #5
shanefjordan commentedAlright, so as a interim solution, you can modify the css with:
Comment #6
baby.hack commentedWhat I ended up doing was modifying the module's style options to include the ability to disable the buttons. Then I used those options in the js.
Something like
jcarousel_style_plugin.inc:
jcarousel.js:
This was for the 7.x-2.4-alpha3 version. Not sure what the dif is with the 6.x versions.
Comment #7
Everett Zufelt commentedIn 7.x, instead of removing, try setting the class to "element-invisible element-focusable". This 'should' make the < and > show up only on focus, and keep them available to screen-reader and keyboard only users. Some more accessibility fixes are likely needed, but I have never used this module.
Of course it is bad practice to hide controls that people might need, and people need the ability to control the flow of this content, as some people have disabilities that requires them to have more time with the content in front of them.
Comment #8
quicksketchI won't be adding this as a feature to jCarousel. The most common solution would be hiding the buttons with CSS, as @shane_jordan did in #5.