I am using jCarousellite on a list on a website I am building. It works perfectly, however the issue is that for some reason, the script is causing List Items to stop stacking.
What I mean by this is – instead of this:
li li
li li
I am getting this:
li li li li
It works fine when I remove the script, but with it, its forcing them all onto a single “line”. I’ve looked through the script and cannot figure out what part is forcing them all onto a single line.
Here is the script: http://www.trekradio.net/dev/wp-content/themes/tr2012/js/jcarousellite_1.0.1.js
You can also see a demo of the problem here in the “Whats On” Section of the Heaer: http://www.trekradio.net/dev/ (this site is under construction so forgive its state).
EDIT: Setting the “vertical” option to “true” in the script changes the carousel scrolling to vertical AND displays the list items like this, which is not what I want:
li
li
li
li
UPDATED : [ugly fix]
here is the line you need to update in
jcarousellite_1.0.1.js(you add the tiny/ 2bit) :Beware since it will impact all other Carousels in any other page.
UPDATE 2 : backward compatible fix
I patched the .js file, and you can use option
linesin your code, or leave it with 1 line by default :Here is the patched
jcarousellite_1.0.1.jsGood luck !
—
I am afraid that this would bend jCarouselLite a little too far.
I would advise you to split the
liin twoul, by PHP or even by manipulating the DOM in Javascript/jquery.This way, you can achieve your goal by setting up two parallel horizontal carousels running together.
Hope this helps !