TheThe Tabs and Accordions
active=false not working (7 posts)

  1. weiover
    Posted 3 years ago #

    Hi, love the plugin. I have used it on a few sites and they all worked great. For some reason, the "active=false" parameter quit working for all recently. You will have to set it to a number in order for the whole accordion to work. I even tried to disable all the plug-ins except this one, still wouldn't work. Any input would be appreciated. Thanks.


  2. weiover
    Posted 3 years ago #

    by the way when "false" statement is used, the accordion displays everything all at once, or basically the functionality quit working.

  3. Motivelevator
    Posted 3 years ago #

    I resolved the same problem by editing in lib/class.js-accord.php this line:

    echo '$("#thethe-accord-'.($i+1).'").accordion({'. implode(',', $opts) .'});' . "\r\n";
    into this:

    echo '$("#thethe-accord-'.($i+1).'").accordion({'. implode(',', $opts) .',active: false});' . "\r\n";

    This way all the accordions on the site will be active:false on load, but this is ok for me

  4. Motivelevator
    Posted 3 years ago #

    little update..

    if you put active: false before implode action you can override it later in shortcodes

  5. Matt Lowe
    Posted 3 years ago #

    I'd also like to see this fixed. When I specify active=false it opens the last item. Tried all sorts:


    Can't get it to work at all!

  6. poco06
    Posted 3 years ago #

    I have the same issue than shoestringsites. When I place active="false", the last item is opened when you launch the page. I have found a way to avoid this : add a new tab item after the last one and place "" as title and as content. Then, everything is correct.
    It would be good to have this issue corrected in a new version of this plugin.
    btw, I found this plugin very interesting and will try to participate to improve it as much as possible.

  7. Damiaan van Vliet
    Posted 3 years ago #

    When you place a number greater then the accordions it is also working. For example; active=4 but in reality you have 3 accordions.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.