Jul
6

Elastislide – links to pages does not work. How to fix it.

By Francdore  //  Stuff  //  11 Comments

Elastislide

I’ve recently used the Elastislide slider on a WordPress site and got some problems when adding links to pages inside the slider.

I’ve found the problem and here is how you fix the Elastislide bug:

Open the javascript file jquery.elastislide.js and go to line 265.

Find the code that says:

// item click event
this.jQueryitems.bind(‘click.elastislide’, function( event ) {

instance.options.onClick( jQuery(this) );
return false;
});

Just change “return false;” to “return: true;”

OR

Add an ‘onClick’ option to your initialise object …

ie

$(‘#carousel’).elastislide({
imageW : 120,
minItems : 2,
border : 0,
onClick : true
});

That’s it!

11 Comments to “Elastislide – links to pages does not work. How to fix it.”

  • Thank you but i think better idea is to change “return false” to “return true”

  • Acutally all you need to do is add an ‘onClick’ option to your initialise object …

    ie

    $(‘#carousel’).elastislide({
    imageW : 120,
    minItems : 2,
    border : 0,
    onClick : true
    });

    • Thanks for the comment.

  • Thank you.
    it`s work.

  • thanks.. for your help.

  • Thanks ! That saved me a lot of trouble and time !

    • Pleasure man!

  • Great feedback. Its workıng now… Thank you a lot

  • Thank you! Save me a lot of time.

  • I have been pulling my hair out trying to get Elastislide to work with WordPress, specifically on the Genesis Framework. Has anyone been able to successfully achieve this and if so, would you be willing to share? Thank you.

  • Thanks for this tip. This confirms what I experienced while trying to use Elastiside on a WordPress blog together with PrettyPhoto. PrettyPhoto was adding a link icon which was intended to be clickable but I discovered that Elastiside was preventing the click from working. I fixed it by commenting out the four lines after the comment // item click event.

Leave a comment

Francois La Cock - Front End Developer Welcome to my blog! I hope you find some useful info here. I will try to update it regularly.

The Latest Stuff