Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Unslider, simple jQuery slider not working Re: Unslider, simple jQuery slider not working

#138714
KaelinDesign
Member

I had to change the unslider.js code to fix my installation. On line 55-56, it says this:
// Set the main element
el.css({width: _.max[0], height: li.first().outerHeight(), overflow: ‘hidden’});
I then manually set the initial height for my first slide by changing it to this:

// Set the main element
el.css({width: _.max[0], height: li.first().height(600), overflow: ‘hidden’});

Note that you’ll need to set the number to your slide height. This will still allow the rest of the slides to auto-adjust in height, as we’re only setting the initial slide.