WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. weiover
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/thethe-tabs-and-accordions/

  2. weiover
    Member
    Posted 1 year ago #

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

  3. Motivelevator
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

    little update..

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

  5. Matt Lowe
    Member
    Posted 1 year ago #

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

    active="false"
    active=-1
    active=""

    Can't get it to work at all!

  6. poco06
    Member
    Posted 1 year ago #

    Hello,
    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
    Member
    Posted 1 year 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

Tags

No tags yet.