WordPress.org

Ready to get started?Download WordPress

Forums

JQuery Accordion Menu Widget
[resolved] Menu not auto-expanding, how so? (8 posts)

  1. Viktor
    Member
    Posted 1 year ago #

    Hi there,

    Our menu does not seem to respond to WordPress internal menu hierarchy as defined in the menu panel, even though the option is checked in the widget config. I want the menu to expand the subitems corresponding to the loaded page, and this is just what this function is supposed to do, right?

    You can view the site and the menu at http://tinyurl.com/ctf9fef

    Has anyone experiences this? Any solutions?

    Thanks,
    Vic

    http://wordpress.org/extend/plugins/jquery-vertical-accordion-menu/

  2. vluna
    Member
    Posted 1 year ago #

    Do not want to discourage you but it seems that the version provided does not work, perhaps paid. I tested the plugin and even the colors of the buttons worked.
    Not a decent tutorial is presented ....

  3. remix4
    Member
    Plugin Author

    Posted 1 year ago #

    @viktorsilfverh@gmail.com your menu is not following the standard wordpress class system for creating menus, which is required in order to identify the current menu itm. This may be due to your theme programming - if you are unsure check with your theme author.

    @vluna assuming your theme is working correctly it works perfectly. Apart from that I dont actually understand what you are trying to say since there isnt a paid version. There are plenty of demos available at:

    http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-accordion-menu-widget/

  4. MapleWebsites
    Member
    Posted 1 year ago #

    My entire menu auto expands on "any" child page. How would I put a standard wordpress class system in place? I based my theme off a modified twentyeleven theme - so the same functions.php is in place.

    Any Ideas?

  5. MapleWebsites
    Member
    Posted 1 year ago #

    Actually, I just disabled all checkboxes and realized that all submenu items are open when I am on "any" child page?
    I am using WP 3.5

  6. MapleWebsites
    Member
    Posted 1 year ago #

    Can anyone help me with this? My whole menu is open when i visit "any" child page...

  7. JJovian
    Member
    Posted 1 year ago #

    Hi there!

    I'm having the same issue with auto-expand.
    As i can see, my theme (RootsTheme) is adding "active" to the
    <li>, instead of <a> inside this <li>. I think it is the problem.

    So, the question is: what i have to change in JS source of Accordion Menu to make all things work properly?

    Any help is very appreciated! Thx.

  8. JJovian
    Member
    Posted 1 year ago #

    So, i've managed to solve the problem by myself. :)
    If someone will need to, here is the solution:

    In the JS file jquery.dcjqaccordion.2.9.js, located in the folder of Accordion Plugin, search for this:

    if(defaults.autoExpand == true) {
    $('li.'+defaults.classExpand+' > a').addClass(classActive); }

    And add another string so it will be:

    if(defaults.autoExpand == true) {
    $('li.'+defaults.classExpand+' > a').addClass(classActive);
    $('li.active > ul').slideToggle(defaults.speed);
    }

    It will make the active submenu slide out on the realative page.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic