Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #49261

    Steve W
    Participant

    I only want to open one accordion at a time.
    I used this code on two different sites with the latest release of X and latest release of wordpress but when one accoridan opens, it does not close the other?

    I have done this before..is this a new bug?

    http://stevemademywebsite.com/

    [accordion id="my-accordion"][accordion_item open="true" parent_id="my-accordion" title="Accordian 1"]Accordian 1 text[/accordion_item][accordion_item parent_id="my-accordion" title="Accordian 2"]Accordian 2 text[/accordion_item][accordion_item parent_id="my-accordion" title="Accordian 3"]Accordian 3 text[/accordion_item][/accordion]

    #49554

    Rad
    Moderator

    Hi Steve,

    Thank you for dropping by!

    There is no toggle option for X accordion, so you will need extra javascript for that.

    Add this javascript at your customizer’s custom javascript.

    jQuery(function($){
    
         $('.x-accordion-toggle').click(function(){
               $('.accordion-body').not( $(this).attr('href') ).collapse('hide');
         });
    
    });
    

    Hope this helps.

    #49668

    Deepak
    Participant

    I had the same problem so I used this script in my customizer. It works but comes with a caveat.

    Since I have one item as open by default, when I click on any other closed item for the first time, all the closed item opens and the opened one closes.

    I click again and all the open ones – closes

    Click again on any one and its all fine from here on in.

    Thanks for the script anyway.

    EDIT: I have now reverted back to shortcode version 2.2.2 and everything seems fine running Theme version 1.8.5

    #49896

    Steve W
    Participant

    In the knowledge base, the video of accordion shows how to do this. It has always worked in the past. I also tried the javascript and had the same problem mentioned by Deepak above. I guess I will try going back to shortcode version 2.2.2 and see if that fixes back to how your video tells us to do it.

    Please report this new bug! or remove the accordion video if this feature is no longer supported.

    #49919

    Kory
    Keymaster

    Thank you all for writing in! This has been noted and we will take a look into this matter and see what we can find out for the next release.

    #51233

    Chris M
    Participant

    I had the same issue and was tearing my eyes out trying to figure out what was wrong in the page code.

    I rolled back to version 2.2.1 and the accordions now collapse as expected – no javascript needed.

    This appears to be a bug introduced in the last updated (or two) of shortcodes.

    #51262

    Michael G
    Participant

    Hi guys,
    I’m about to create a FAQ page, so I will be using the accordion shortcode. I’m running the very latest version of the theme (2.0.0) and shortcodes (2.3.0). If I want my accordions to work properly, do I need to roll back just the shortcodes, or both the shortcodes and theme? I’m a bit confused at this point. If you can suggest specific versions, that would help. NOTE: I always work with the child theme and assume that has no bearing on the matter.

    Thanks,
    Michael

    #51575

    Christian
    Moderator

    Hey guys,

    We’re investigating the issue. You can revert back to the previous version for now.

    Thanks.

    #51833

    Michael G
    Participant

    Thank you, but I was asking for a little more specifics. Do I need to revert back to the previous version of the theme, the shortcodes, or both?

    #52153

    Support
    Member

    Hey Michael,

    Just roll back to the version 2.2.2 of the shortcode, no need to touch your theme version.

    Hope this helps you better.

    Thank you.

    #52192

    Michael G
    Participant

    Ok, thanks for the clarification.

    Michael

    #52392

    Aman
    Member

    You’re welcome Michael.

    #53649

    Tim B
    Participant

    Where can I download version 2.2.2 of the short code plugin?

    #53877

    Rad
    Moderator

    Hi Tim,

    As of this moment, I can’t provide you a download link for older version of shortcode plugin. But I will ask my colleague if its possible to get this file.

    For the mean time, if you still have copies of older theme from previous downloads then you could extract it and find the plugins at /x/framework/plugins/ and check if 2.2.2 is available.

    Thank you.

    #54468

    Javi S
    Participant

    I just purchased the theme so I have this 2.2.2 version.

    I downgraded to 2.3.0 but it doesn’t work.

    When will be possible to have a link to download 2.2.2 or to have it solved in a newer version?

    Thanks!