treehouse : what would you like to learn today?
Web Design Web Development iOS Development

WP anything slider: fails with parameters

  • These two pages (html versions of WP output) are almost identical, except the slider works on one, and not the other...

    http://beckerguerry.com/bg_works.html http://beckerguerry.com/bg_broke.html

    ... the ONLY difference is that the 'broke' page has a full array of parameters in the anything slider call, while the 'works' page simply calls:

    jQuery(function() { jQuery('#slider-140').anythingSlider(); });

    Can you see the issue?

  • In the full array of parameters, the following have empty events... they should be as follows:

    clickForwardArrow   : 'click',         
    clickBackArrow      : 'click',         
    clickControls       : 'click focusin', 
    clickSlideshow      : 'click', 
    

    otherwise, clicking on the arrows won't work