WordPress.org

Ready to get started?Download WordPress

Forums

Meteor Slides
[resolved] jQuery conflict slideshow.js with jQuery UI accordion (4 posts)

  1. eagerbob
    Member
    Posted 2 years ago #

    Hello,
    I am using Meteor Slides on a new site I am building. Works fine and I really like the way it works in the backend, making it easy to manage several slideshows.

    I now added an accordion using jQueru UI, as found here: http://jqueryui.com/demos/accordion/
    While easy to make in HTML, getting it to work in WordPress was troublesome.
    It turns out that there is a conflict with meteorslides. If I turn the plugin off, the accordion works, otherwise it doesn't.

    The code of the page that does not work is here: http://tinyurl.com/d8qtjzl
    This one does: http://tinyurl.com/accordionworks

    The accordion is the blue text on the bottom right half of the page starting with "Het bestuur van K.I.D.S."

    I nailed it down to slideshow.js, if I remove that from the source my accordion works. But then, offcourse, my slideshow does not.

    My question: is there anything that I could do, maybe change something in the slideshow.js file, to prevent this?

    Thanks

    http://wordpress.org/extend/plugins/meteor-slides/

  2. Josh Leuze
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Bob, the problem is with this script, which is throwing an error for not being a function:

    <script>
    	$(function() {
    		$( "#accordion" ).accordion();
    	});
    	</script>

    Try it like this instead:

    <script type="text/javascript">
    jQuery(document).ready(function() {
        jQuery( "#accordion" ).accordion();
    });
    </script>
  3. eagerbob
    Member
    Posted 2 years ago #

    Thank you Josh, that did it.
    (should should have asked here earlier, spent almost two day troubleshooting this)

    Anyway, I am glad it works.

    I just donated through Paypal for this great plugin, and the excellent support.

    Thanks again

  4. Josh Leuze
    Member
    Plugin Author

    Posted 2 years ago #

    You're welcome Bob, thanks for your donation!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic