WordPress.org

Forums

jQuery UI Widgets
Accordion not working (2 posts)

  1. maxw89
    Member
    Posted 1 year ago #

    Hi,

    I'm trying to add a jQuery accordion using jQuery UI Widgets to my WordPress 3.8.1 site with Genesis Theme 2.0.1 but the widget isn't loading at all.

    My custom jQuery code entered in plugin settings is:
    jQuery(document).ready(function($) {
    $( "#accordion" ).accordion({
    collapsible: true
    });
    });

    An my HTML-code is:
    <div id="accordion">
    <h3>Section 1</h3>
    <div>

    Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer
    ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit
    amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut
    odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.

    </div>
    </div>

    Could it be a problem with the theme blocking the script? Thankful for any assistance!

    https://wordpress.org/plugins/jquery-ui-widgets/

  2. David Gwyer
    Member
    Plugin Author

    Posted 1 year ago #

    I would take a look at your site (in say Chrome) and use the browser inspector tools to see what the JS error is. There may be a conflict with the theme or other Plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • jQuery UI Widgets
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic